docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ICanvasElement

    This is an element that can live on a Canvas.

    Namespace: UnityEngine.UI
    Assembly: UnityEngine.UI.dll
    Syntax
    public interface ICanvasElement

    Properties

    transform

    Get the transform associated with the ICanvasElement.

    Declaration
    Transform transform { get; }
    Property Value
    Type Description
    Transform

    Methods

    GraphicUpdateComplete()

    Callback sent when this ICanvasElement has completed Graphic rebuild.

    Declaration
    void GraphicUpdateComplete()

    IsDestroyed()

    Used if the native representation has been destroyed.

    Declaration
    bool IsDestroyed()
    Returns
    Type Description
    bool

    Return true if the element is considered destroyed.

    LayoutComplete()

    Callback sent when this ICanvasElement has completed layout.

    Declaration
    void LayoutComplete()

    Rebuild(CanvasUpdate)

    Rebuild the element for the given stage.

    Declaration
    void Rebuild(CanvasUpdate executing)
    Parameters
    Type Name Description
    CanvasUpdate executing

    The current CanvasUpdate stage being rebuild.

    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)