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.CanvasScaler Class Reference
+ Inheritance diagram for UnityEngine.UI.CanvasScaler:
+ Collaboration diagram for UnityEngine.UI.CanvasScaler:

Public Types

enum  ScaleMode { ConstantPixelSize , ScaleWithScreenSize , ConstantPhysicalSize }
 
enum  ScreenMatchMode { MatchWidthOrHeight , Expand , Shrink }
 
enum  Unit {
  Centimeters , Millimeters , Inches , Points ,
  Picas
}
 

Public Member Functions

virtual bool IsActive ()
 
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

 CanvasScaler ()
 
override void OnEnable ()
 
override void OnDisable ()
 
virtual void Handle ()
 
virtual void HandleWorldCanvas ()
 
virtual void HandleConstantPixelSize ()
 
virtual void HandleScaleWithScreenSize ()
 
virtual void HandleConstantPhysicalSize ()
 
void SetScaleFactor (float scaleFactor)
 
void SetReferencePixelsPerUnit (float referencePixelsPerUnit)
 
virtual void Awake ()
 
virtual void Start ()
 
virtual void OnDestroy ()
 
virtual void OnRectTransformDimensionsChange ()
 
virtual void OnBeforeTransformParentChanged ()
 
virtual void OnTransformParentChanged ()
 
virtual void OnDidApplyAnimationProperties ()
 
virtual void OnCanvasGroupChanged ()
 
virtual void OnCanvasHierarchyChanged ()
 

Protected Attributes

float m_ReferencePixelsPerUnit
 
float m_ScaleFactor
 
Vector2 m_ReferenceResolution
 
CanvasScaler.ScreenMatchMode m_ScreenMatchMode
 
float m_MatchWidthOrHeight
 
CanvasScaler.Unit m_PhysicalUnit
 
float m_FallbackScreenDPI
 
float m_DefaultSpriteDPI
 
float m_DynamicPixelsPerUnit
 
bool m_PresetInfoIsWorld
 

Package Functions

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

Static Package Attributes

static int OffsetOfInstanceIDInCPlusPlusObject
 

Properties

CanvasScaler.ScaleMode uiScaleMode [get, set]
 
float referencePixelsPerUnit [get, set]
 
float scaleFactor [get, set]
 
Vector2 referenceResolution [get, set]
 
CanvasScaler.ScreenMatchMode screenMatchMode [get, set]
 
float matchWidthOrHeight [get, set]
 
CanvasScaler.Unit physicalUnit [get, set]
 
float fallbackScreenDPI [get, set]
 
float defaultSpriteDPI [get, set]
 
float dynamicPixelsPerUnit [get, set]
 
bool useGUILayout [get, set]
 
bool enabled [get, set]
 
bool isActiveAndEnabled [get, set]
 
Transform transform [get, set]
 
GameObject gameObject [get, set]
 
string name [get, set]
 
HideFlags hideFlags [set]
 

Private Member Functions

void Canvas_preWillRenderCanvases ()
 
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 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

CanvasScaler.ScaleMode m_UiScaleMode
 
Canvas m_Canvas
 
float m_PrevScaleFactor
 
float m_PrevReferencePixelsPerUnit
 
IntPtr m_CachedPtr
 

Static Private Attributes

const float kLogBase = 2f
 
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 13 of file CanvasScaler.cs.


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