Lumberyard
Legacy Reference

UIe Element Node

Flow Graph is deprecated and will be removed in a future version of Lumberyard. Learn about Script Canvas, Lumberyard's new visual scripting environment.

This topic references tools and features that are legacy. If you want to use legacy tools in Lumberyard Editor, disable the CryEntity Removal gem using the Project Configurator or the command line. To learn about the latest features, see the Amazon Lumberyard User Guide.

Use the following flow graph nodes to perform actions on an element.

UIe:Element:IsEnabled Node

Gets whether the element is enabled.

Node Inputs

Activate

Updates the outputs.

CanvasID

Unique identifier of the element's canvas.

ElementID

The element Id. Used if ElementName is empty

Node Output

State

The enabled state of the element.

UIe:Element:SetIsEnabled Node

Sets the Boolean enabled state of the element. If an element is not enabled, neither it nor any of its children are drawn or interactive.

Node Inputs

Activate

Sets the enabled state to the value of the State input.

ElementName

Name of the element.

ElementID

The element Id. Used if ElementName is empty

State

The Boolean enabled state of the element.

Node Output

Done

Sends a signal when the node's action is finished.

UIe:Element:GetChildAtIndex Node

Gets the child of an element at the specified index.

Node Inputs

Activate

Updates the outputs.

ElementName

Name of the element.

ElementID

The element Id. Used if ElementName is empty.

ChildIndex

The index of the child.

Node Output

ChildElementName

The name of the child element.

ChildElementId

The element Id of the child element.

UIe:Element:GetChildByName

Gets the element Id of a child by its name.

Node Inputs

Activate

Updates the outputs.

ElementName

Name of the element.

ElementID

The element Id. Used if ElementName is empty.

ChildElementName

The name of the child element.

Node Output

ChildElementId

The element Id of the child element.

UIe:Element:GetIndexOfChild Node

Gets the index of the specified child.

Node Inputs

Activate

Updates the outputs.

ElementName

Name of the element.

ElementID

The element Id. Used if ElementName is empty.

ChildElementName

The name of the child element.

ChildElementId

The child element Id. Used if ChildElementName is empty.

Node Output

IndexOfChild

The index of the child element.

UIe:Element:GetNumChildElements Node

Gets the number of children of an element.

Node Inputs

Activate

Updates the outputs.

ElementName

Name of the element.

ElementID

The element Id. Used if ElementName is empty.

Node Output

NumChildElements

The number of child elements.

UIe:Element:GetParent Node

Gets the parent of an element.

Node Inputs

Activate

Updates the outputs.

ElementName

Name of the element.

ElementID

The element Id. Used if ElementName is empty.

Node Output

ParentElementName

The name of the parent element.

ParentElementId

The element Id of the parent element.