Component.GetComponentIndex()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, InstantiateParameters)
Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.UI Assembly: UnityEngine.UI.dll Syntax[AddComponentMenu("UI/Rect Mask 2D", 14)]
[ExecuteAlways]
[DisallowMultipleComponent]
[RequireComponent(typeof(RectTransform))]
public class RectMask2D : UIBehaviour, IClipper, ICanvasRaycastFilter
Constructors RectMask2D() Declaration Properties canvasRect
Get the Rect for the mask in canvas space.
Declarationpublic Rect canvasRect { get; }
Property Value padding
Padding to be applied to the masking X = Left Y = Bottom Z = Right W = Top
Declarationpublic Vector4 padding { get; set; }
Property Value rectTransform
Helper function to get the RectTransform for the mask.
Declarationpublic RectTransform rectTransform { get; }
Property Value softness
The softness to apply to the horizontal and vertical axis.
Declarationpublic Vector2Int softness { get; set; }
Property Value Methods AddClippable(IClippable)
Add a IClippable to be tracked by the mask.
Declarationpublic void AddClippable(IClippable clippable)
Parameters Type Name Description IClippable clippable
Add the clippable object for this mask
IsRaycastLocationValid(Vector2, Camera) Declarationpublic virtual bool IsRaycastLocationValid(Vector2 sp, Camera eventCamera)
Parameters Returns OnCanvasHierarchyChanged()
Called when the state of the parent Canvas is changed.
Declarationprotected override void OnCanvasHierarchyChanged()
Overrides OnDestroy() Declaration
protected override void OnDestroy()
Overrides OnDisable() Declaration
protected override void OnDisable()
Overrides OnEnable() Declaration
protected override void OnEnable()
Overrides OnTransformParentChanged() Declaration
protected override void OnTransformParentChanged()
Overrides OnValidate() Declaration
protected override void OnValidate()
Overrides PerformClipping()
Function to to cull / clip children elements.
Declarationpublic virtual void PerformClipping()
RemoveClippable(IClippable)
Remove an IClippable from being tracked by the mask.
Declarationpublic void RemoveClippable(IClippable clippable)
Parameters Type Name Description IClippable clippable
Remove the clippable object from this mask
UpdateClipSoftness() Declarationpublic virtual void UpdateClipSoftness()
Implements
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4