Table of Contents

Class ScreenSafeArea

Namespace
Global
Assembly
Assembly-CSharp.dll
public class ScreenSafeArea : MonoBehaviour
Inheritance
Object
Component
Behaviour
MonoBehaviour
ScreenSafeArea
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.useGUILayout
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.transform
Component.gameObject
Component.tag
Object.GetInstanceID()
Object.GetHashCode()
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.ToString()
Object.name
Object.hideFlags

Fields

rectTransform

public RectTransform rectTransform

Field Value

RectTransform

safeArea

[SerializeField]
public Rect safeArea

Field Value

Rect

safeAreaDirty

public bool safeAreaDirty

Field Value

bool

safeAreaMargins

public static Vector2 safeAreaMargins

Field Value

Vector2

Methods

GetMargins()

public static Vector2 GetMargins()

Returns

Vector2

ModifyRectByPercentage(Rect, float)

public Rect ModifyRectByPercentage(Rect area, float pct)

Parameters

area Rect
pct float

Returns

Rect

Platform_OnSystemPause(bool)

public void Platform_OnSystemPause(bool paused)

Parameters

paused bool

Start()

public void Start()

Update()

public void Update()