Menu
Lumberyard
Developer Guide (Version 1.11)

UI World Components

Controls the loading and unloading of UI canvases.

UiCanvasAssetRefBus

Services messages for the UiCanvasAssetRefComponent.

LoadCanvas

Loads the UI canvas using the stored asset reference. Returns the entity ID of the loaded canvas.

Syntax

Copy
AZ::EntityId LoadCanvas()

UnloadCanvas

Unloads the UI canvas using the stored asset reference.

Syntax

Copy
void UnloadCanvas()

UiCanvasAssetRefNotificationBus

Handles events sent by the UiCanvasAssetRefComponent.

OnCanvasLoadedIntoEntity

Called when the canvas asset reference loads a UI canvas.

Syntax

Copy
void OnCanvasLoadedIntoEntity(AZ::EntityId uiCanvasEntity)

UiCanvasProxyRefBus

Services messages for the UiCanvasProxyRefComponent.

SetCanvasRefEntity

Sets the entity that manages the UI canvas for this proxy.

Syntax

Copy
void SetCanvasRefEntity(AZ::EntityId canvasAssetRefEntity)

UiCanvasRefBus

Services messages for the UiCanvasAssetRefComponent and UiCanvasProxyRefComponent.

GetCanvas

Returns the UI canvas associated with this entity

Syntax

Copy
AZ::EntityId GetCanvas()

UiCanvasRefNotificationBus

Provides notifications of when the UI canvas reference changes.

OnCanvasRefChanged

Called when the canvas referenced by a UiCanvasAssetRefComponent has changed. This can happen when LoadCanvas, UnloadCanvas, or SetCanvasRefEntity is called.

Syntax

Copy
void OnCanvasRefChanged(AZ::EntityId uiCanvasRefEntity, AZ::EntityId uiCanvasEntity