UiLayout
Extends:
Static Member Summary
Static Public Members | ||
public static get |
propsTypes: {"camera": string, "xAnchor": string, "yAnchor": string, "xOffset": string, "yOffset": string} |
Static Method Summary
Static Public Methods | ||
public static |
factory(): * |
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public get |
camera: * |
|
public set |
|
|
public get |
xAnchor: * |
|
public set |
|
|
public get |
xOffset: * |
|
public set |
|
|
public get |
yAnchor: * |
|
public set |
|
|
public get |
yOffset: * |
|
public set |
|
Method Summary
Public Methods | ||
public |
dispose() |
|
public |
|
|
public |
onAction(name: *, args: ...*): * |
|
public |
onAttach() |
|
public |
onCameraChanged(camera: *) |
|
public |
onLayout() |
|
public |
onUpdate(deltaTime: *) |
Inherited Summary
From class Component | ||
public static get |
propsTypes: * |
|
public static |
Component factory. |
|
public get |
|
|
public |
[name]: * |
|
public |
deserialize(json: *) Deserialize JSON properties into this component. |
|
public |
dispose() Destructor (dispose internal resources and detach from entity). |
|
public |
Called when action arrived. |
|
public |
onAlterActionArguments(name: string, args: *): array | undefined Called when asked to alter arrived action parameters. |
|
public |
onAttach() Called after attached to entity. |
|
public |
onDetach() Called before detached from entity. |
|
public |
onPropertySerialize(name: string, value: *): * Called when property is serialized. |
|
public |
onPropertySetup(name: string, value: *) Called when given property is deserialized. |
|
public |
serialize(): * Serialize component into JSON data. |
Static Public Members
Static Public Methods
Public Constructors
Public Members
public get camera: * source
public set camera source
public get xAnchor: * source
public set xAnchor source
public get xOffset: * source
public set xOffset source
public get yAnchor: * source
public set yAnchor source
public get yOffset: * source
public set yOffset source
Public Methods
public dispose() source
Destructor (dispose internal resources and detach from entity).
Override:
Component#disposepublic layout(triggerAction: boolean) source
Params:
Name | Type | Attribute | Description |
triggerAction | boolean |
|
public onAction(name: *, args: ...*): * source
Called when action arrived.
Override:
Component#onActionParams:
Name | Type | Attribute | Description |
name | * | ||
args | ...* |
Return:
* |
public onCameraChanged(camera: *) source
Params:
Name | Type | Attribute | Description |
camera | * |
public onLayout() source
public onUpdate(deltaTime: *) source
Params:
Name | Type | Attribute | Description |
deltaTime | * |