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. |