terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
UnityEngine.UI.Image Class Reference
+ Inheritance diagram for UnityEngine.UI.Image:
+ Collaboration diagram for UnityEngine.UI.Image:

Public Types

enum  Type { Simple , Sliced , Tiled , Filled }
 
enum  FillMethod {
  Horizontal , Vertical , Radial90 , Radial180 ,
  Radial360
}
 
enum  OriginHorizontal { Left , Right }
 
enum  OriginVertical { Bottom , Top }
 
enum  Origin90 { BottomLeft , TopLeft , TopRight , BottomRight }
 
enum  Origin180 { Bottom , Left , Top , Right }
 
enum  Origin360 { Bottom , Right , Top , Left }
 

Public Member Functions

void DisableSpriteOptimizations ()
 
virtual void OnBeforeSerialize ()
 
virtual void OnAfterDeserialize ()
 
override void SetNativeSize ()
 
virtual void CalculateLayoutInputHorizontal ()
 
virtual void CalculateLayoutInputVertical ()
 
virtual bool IsRaycastLocationValid (Vector2 screenPoint, Camera eventCamera)
 
virtual Material GetModifiedMaterial (Material baseMaterial)
 
virtual void Cull (Rect clipRect, bool validRect)
 
virtual void SetClipRect (Rect clipRect, bool validRect)
 
virtual void SetClipSoftness (Vector2 clipSoftness)
 
virtual void ParentMaskStateChanged ()
 
virtual void RecalculateClipping ()
 
virtual void RecalculateMasking ()
 
virtual void SetAllDirty ()
 
virtual void SetLayoutDirty ()
 
virtual void SetVerticesDirty ()
 
virtual void SetMaterialDirty ()
 
void SetRaycastDirty ()
 
virtual void OnCullingChanged ()
 
virtual void Rebuild (CanvasUpdate update)
 
virtual void LayoutComplete ()
 
virtual void GraphicUpdateComplete ()
 
virtual bool Raycast (Vector2 sp, Camera eventCamera)
 
Vector2 PixelAdjustPoint (Vector2 point)
 
Rect GetPixelAdjustedRect ()
 
virtual void CrossFadeColor (Color targetColor, float duration, bool ignoreTimeScale, bool useAlpha)
 
virtual void CrossFadeColor (Color targetColor, float duration, bool ignoreTimeScale, bool useAlpha, bool useRGB)
 
virtual void CrossFadeAlpha (float alpha, float duration, bool ignoreTimeScale)
 
void RegisterDirtyLayoutCallback (UnityAction action)
 
void UnregisterDirtyLayoutCallback (UnityAction action)
 
void RegisterDirtyVerticesCallback (UnityAction action)
 
void UnregisterDirtyVerticesCallback (UnityAction action)
 
void RegisterDirtyMaterialCallback (UnityAction action)
 
void UnregisterDirtyMaterialCallback (UnityAction action)
 
virtual bool IsActive ()
 
bool IsDestroyed ()
 
bool IsDestroyed ()
 
bool IsInvoking ()
 
bool IsInvoking (string methodName)
 
void CancelInvoke ()
 
void CancelInvoke (string methodName)
 
void Invoke (string methodName, float time)
 
void InvokeRepeating (string methodName, float time, float repeatRate)
 
Coroutine StartCoroutine (string methodName)
 
Coroutine StartCoroutine (string methodName, [DefaultValue("null")] object value)
 
Coroutine StartCoroutine (IEnumerator routine)
 
Coroutine StartCoroutine_Auto (IEnumerator routine)
 
void StopCoroutine (IEnumerator routine)
 
void StopCoroutine (Coroutine routine)
 
void StopCoroutine (string methodName)
 
void StopAllCoroutines ()
 
Component GetComponent (Type type)
 
T GetComponent< T > ()
 
Component GetComponentInChildren (Type t, bool includeInactive)
 
T GetComponentInChildren< T > ()
 
T[] GetComponentsInChildren< T > (bool includeInactive)
 
void GetComponentsInChildren< T > (bool includeInactive, List< T > result)
 
void GetComponentsInChildren< T > (List< T > results)
 
Component GetComponentInParent (Type t, bool includeInactive)
 
T GetComponentInParent< T > ()
 
T[] GetComponentsInParent< T > (bool includeInactive)
 
void GetComponentsInParent< T > (bool includeInactive, List< T > results)
 
T[] GetComponentsInParent< T > ()
 
void GetComponents (Type type, List< Component > results)
 
void GetComponents< T > (List< T > results)
 
T[] GetComponents< T > ()
 
unsafe int GetInstanceID ()
 
override int GetHashCode ()
 
override bool Equals (object other)
 
static void Destroy (Object obj, [DefaultValue("0.0F")] float t)
 
static void DestroyImmediate (Object obj, [DefaultValue("false")] bool allowDestroyingAssets)
 
static Object[] FindObjectsOfType (Type type, bool includeInactive)
 
static void DontDestroyOnLoad ([NotNull("NullExceptionObject")] Object target)
 
override string ToString ()
 

Static Public Member Functions

static void print (object message)
 
static implicit operator bool (Object exists)
 
static Object Instantiate (Object original, Vector3 position, Quaternion rotation)
 
static Object Instantiate (Object original)
 
static T Instantiate< T > (T original)
 
static T Instantiate< T > (T original, Vector3 position, Quaternion rotation)
 
static void Destroy (Object obj)
 
static void DestroyImmediate (Object obj)
 
static T[] FindObjectsOfType< T > ()
 
static bool operator== (Object x, Object y)
 
static bool operator!= (Object x, Object y)
 

Protected Member Functions

 Image ()
 
override void OnPopulateMesh (VertexHelper toFill)
 
override void OnEnable ()
 
override void OnDisable ()
 
override void UpdateMaterial ()
 
override void OnCanvasHierarchyChanged ()
 
override void OnDidApplyAnimationProperties ()
 
override void OnTransformParentChanged ()
 
override void OnRectTransformDimensionsChange ()
 
override void OnBeforeTransformParentChanged ()
 
override void OnDestroy ()
 
virtual void UpdateGeometry ()
 
virtual void OnFillVBO (List< UIVertex > vbo)
 
virtual void OnPopulateMesh (Mesh m)
 
virtual void Awake ()
 
virtual void Start ()
 
virtual void OnCanvasGroupChanged ()
 

Protected Attributes

bool m_ShouldRecalculateStencil
 
Material m_MaskMaterial
 
bool m_IncludeForMasking
 
bool m_ShouldRecalculate
 
int m_StencilValue
 
Material m_Material
 
bool m_SkipLayoutUpdate
 
bool m_SkipMaterialUpdate
 
UnityAction m_OnDirtyLayoutCallback
 
UnityAction m_OnDirtyVertsCallback
 
UnityAction m_OnDirtyMaterialCallback
 
Mesh m_CachedMesh
 
Vector2[] m_CachedUvs
 

Static Protected Attributes

static Material s_ETC1DefaultUI
 
static Material s_DefaultUI
 
static Texture2D s_WhiteTexture
 
static Mesh s_Mesh
 

Package Functions

string GetScriptClassName ()
 
void GetComponentFastPath (Type type, IntPtr oneFurtherThanResultValue)
 
static Object FindObjectFromInstanceID (int instanceID)
 

Static Package Attributes

static int OffsetOfInstanceIDInCPlusPlusObject
 

Properties

Sprite sprite [get, set]
 
Sprite overrideSprite [get, set]
 
Sprite activeSprite [get, set]
 
Image.Type type [get, set]
 
bool preserveAspect [get, set]
 
bool fillCenter [get, set]
 
Image.FillMethod fillMethod [get, set]
 
float fillAmount [get, set]
 
bool fillClockwise [get, set]
 
int fillOrigin [get, set]
 
float eventAlphaThreshold [get, set]
 
float alphaHitTestMinimumThreshold [get, set]
 
bool useSpriteMesh [get, set]
 
static Material defaultETC1GraphicMaterial [get, set]
 
override Texture mainTexture [get, set]
 
bool hasBorder [get, set]
 
float pixelsPerUnitMultiplier [get, set]
 
float pixelsPerUnit [get, set]
 
float multipliedPixelsPerUnit [get, set]
 
override Material material [get, set]
 
virtual float minWidth [get, set]
 
virtual float preferredWidth [get, set]
 
virtual float flexibleWidth [get, set]
 
virtual float minHeight [get, set]
 
virtual float preferredHeight [get, set]
 
virtual float flexibleHeight [get, set]
 
virtual int layoutPriority [get, set]
 
MaskableGraphic.CullStateChangedEvent onCullStateChanged [get, set]
 
bool maskable [get, set]
 
bool isMaskingGraphic [get, set]
 
Rect rootCanvasRect [get, set]
 
static Material defaultGraphicMaterial [get, set]
 
virtual Color color [get, set]
 
virtual bool raycastTarget [get, set]
 
Vector4 raycastPadding [get, set]
 
bool useLegacyMeshGeneration [get, set]
 
int depth [get, set]
 
RectTransform rectTransform [get, set]
 
RectTransform rectTransform [get]
 
Canvas canvas [get, set]
 
CanvasRenderer canvasRenderer [get, set]
 
virtual Material defaultMaterial [get, set]
 
virtual Material materialForRendering [get, set]
 
static Mesh workerMesh [get, set]
 
bool useGUILayout [get, set]
 
bool enabled [get, set]
 
bool isActiveAndEnabled [get, set]
 
Transform transform [get, set]
 
Transform transform [get]
 
GameObject gameObject [get, set]
 
GameObject gameObject [get]
 
string name [get, set]
 
HideFlags hideFlags [set]
 

Private Member Functions

void PreserveSpriteAspectRatio (ref Rect rect, Vector2 spriteSize)
 
Vector4 GetDrawingDimensions (bool shouldPreserveAspect)
 
void TrackSprite ()
 
void GenerateSimpleSprite (VertexHelper vh, bool lPreserveAspect)
 
void GenerateSprite (VertexHelper vh, bool lPreserveAspect)
 
void GenerateSlicedSprite (VertexHelper toFill)
 
void GenerateTiledSprite (VertexHelper toFill)
 
Vector4 GetAdjustedBorders (Vector4 border, Rect adjustedRect)
 
void GenerateFilledSprite (VertexHelper toFill, bool preserveAspect)
 
Vector2 MapCoordinate (Vector2 local, Rect rect)
 
void UpdateCull (bool cull)
 
void UpdateClipParent ()
 
GameObject UnityEngine.UI.IClippable. get_gameObject ()
 
void CacheCanvas ()
 
void DoMeshGeneration ()
 
void DoLegacyMeshGeneration ()
 
Transform UnityEngine.UI.ICanvasElement. get_transform ()
 
static bool IsInvoking ([NotNull("NullExceptionObject")] MonoBehaviour self, string methodName)
 
static void CancelInvoke ([NotNull("NullExceptionObject")] MonoBehaviour self, string methodName)
 
static void Internal_CancelInvokeAll ([NotNull("NullExceptionObject")] MonoBehaviour self)
 
static bool Internal_IsInvokingAll ([NotNull("NullExceptionObject")] MonoBehaviour self)
 
static void InvokeDelayed ([NotNull("NullExceptionObject")] MonoBehaviour self, string methodName, float time, float repeatRate)
 
static bool IsObjectMonoBehaviour ([NotNull("NullExceptionObject")] Object obj)
 
Coroutine StartCoroutineManaged (string methodName, object value)
 
Coroutine StartCoroutineManaged2 (IEnumerator enumerator)
 
void StopCoroutineManaged (Coroutine routine)
 
void StopCoroutineFromEnumeratorManaged (IEnumerator routine)
 
void GetComponentsForListInternal (Type searchType, object resultList)
 
IntPtr GetCachedPtr ()
 
static string ToString (Object obj)
 
static int GetOffsetOfInstanceIDInCPlusPlusObject ()
 
static Object Internal_CloneSingle ([NotNull("NullExceptionObject")] Object data)
 
static string GetName ([NotNull("NullExceptionObject")] Object obj)
 
static void SetName ([NotNull("NullExceptionObject")] Object obj, string name)
 
static Object Internal_InstantiateSingle_Injected (Object data, ref Vector3 pos, ref Quaternion rot)
 

Static Private Member Functions

static void AddQuad (VertexHelper vertexHelper, Vector3[] quadPositions, Color32 color, Vector3[] quadUVs)
 
static void AddQuad (VertexHelper vertexHelper, Vector2 posMin, Vector2 posMax, Color32 color, Vector2 uvMin, Vector2 uvMax)
 
static bool RadialCut (Vector3[] xy, Vector3[] uv, float fill, bool invert, int corner)
 
static void RadialCut (Vector3[] xy, float cos, float sin, bool invert, int corner)
 
static void RebuildImage (SpriteAtlas spriteAtlas)
 
static void TrackImage (Image g)
 
static void UnTrackImage (Image g)
 
static Image ()
 
static Color CreateColorFromAlpha (float alpha)
 
static bool CompareBaseObjects (Object lhs, Object rhs)
 
static bool IsNativeObjectAlive (Object o)
 
static void CheckNullArgument (object arg, string message)
 
static Object Internal_InstantiateSingle ([NotNull("NullExceptionObject")] Object data, Vector3 pos, Quaternion rot)
 

Private Attributes

Sprite m_Sprite
 
Sprite m_OverrideSprite
 
Image.Type m_Type
 
bool m_PreserveAspect
 
bool m_FillCenter
 
Image.FillMethod m_FillMethod
 
float m_FillAmount
 
bool m_FillClockwise
 
int m_FillOrigin
 
float m_AlphaHitTestMinimumThreshold
 
bool m_Tracked
 
bool m_UseSpriteMesh
 
float m_PixelsPerUnitMultiplier
 
float m_CachedReferencePixelsPerUnit
 
RectMask2D m_ParentMask
 
bool m_Maskable
 
bool m_IsMaskingGraphic
 
MaskableGraphic.CullStateChangedEvent m_OnCullStateChanged
 
readonly Vector3[] m_Corners
 
Color m_Color
 
bool m_RaycastTarget
 
bool m_RaycastTargetCache
 
Vector4 m_RaycastPadding
 
RectTransform m_RectTransform
 
CanvasRenderer m_CanvasRenderer
 
Canvas m_Canvas
 
bool m_VertsDirty
 
bool m_MaterialDirty
 
readonly TweenRunner< ColorTweenm_ColorTweenRunner
 
bool< useLegacyMeshGenerationk__BackingField
 
IntPtr m_CachedPtr
 

Static Private Attributes

static readonly Vector2[] s_VertScratch
 
static readonly Vector2[] s_UVScratch
 
static readonly Vector3[] s_Xy
 
static readonly Vector3[] s_Uv
 
static List< Imagem_TrackedTexturelessImages
 
static bool s_Initialized
 
static readonly VertexHelper s_VertexHelper
 
const string objectIsNullMessage = "The Object you want to instantiate is null."
 
const string cloneDestroyedMessage = "Instantiate failed because the clone was destroyed during creation. This can happen if DestroyImmediate is called in MonoBehaviour.Awake."
 

Detailed Description

Definition at line 14 of file Image.cs.


The documentation for this class was generated from the following file: