docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ClipperRegistry

    Registry class to keep track of all IClippers that exist in the scene

    Inheritance
    object
    ClipperRegistry
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)