docs.unity.cn
    Show / Hide Table of Contents

    Interface ICanvasElement

    This is an element that can live on a Canvas.

    Namespace: UnityEngine.UI
    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
    Boolean

    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.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 12 June 2023