Class ClipperRegistry
Registry class to keep track of all IClippers that exist in the scene
Inherited Members
Namespace: UnityEngine.UI
Assembly: UnityEngine.UI.dll
Syntax
public class ClipperRegistry
Remarks
This is used during the CanvasUpdate loop to cull clippable elements. The clipping is called after layout, but before Graphic update.
Constructors
ClipperRegistry()
Declaration
protected ClipperRegistry()
Properties
instance
The singleton instance of the clipper registry.
Declaration
public static ClipperRegistry instance { get; }
Property Value
Type | Description |
---|---|
ClipperRegistry |
Methods
Cull()
Perform the clipping on all registered IClipper
Declaration
public void Cull()
Disable(IClipper)
Disable a IClipper element
Declaration
public static void Disable(IClipper c)
Parameters
Type | Name | Description |
---|---|---|
IClipper | c | The Element to try and disable. |
Register(IClipper)
Register a unique IClipper element
Declaration
public static void Register(IClipper c)
Parameters
Type | Name | Description |
---|---|---|
IClipper | c | The clipper element to add |
Unregister(IClipper)
UnRegister a IClipper element
Declaration
public static void Unregister(IClipper c)
Parameters
Type | Name | Description |
---|---|---|
IClipper | c | The Element to try and remove. |