Lumberyard
Legacy Reference

UI Button Component Nodes

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.

The UI Button component flow graph nodes have been superseded by the UIe Button flow graph nodes. For best results, use the UIe Button component flow graph nodes.

Use the following flow graph nodes to perform actions on the button component.

UI:Button:GetActionName Node

Gets the action name string that is emitted when the button is released.

Node Inputs

Activate

Updates the output.

CanvasID

Unique identifier of the element's canvas.

ElementID

Unique identifier of the button element.

Node Output

Action

The action name associated with the button.

UI:Button:SetActionName Node

Sets the action name string that's emitted when the button is released.

Node Inputs

Activate

Assigns the action name.

CanvasID

Unique identifier of the element's canvas.

ElementID

Unique identifier of the button element.

Action

The action name string to assign to the button.

Node Output

Done

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