Button (BETA)

Create a button widget on the Viewport

Installation

To use this Node, you must enable omni.graph.ui_nodes in the Extension Manager.

Inputs

Name

Type

Description

Default

Create (create)

execution

Input execution to create and show the widget

Parent Widget Path (parentWidgetPath)

token

The absolute path to the parent widget.

Start Hidden (startHidden)

bool

Determines whether the button will initially be visible (False) or not (True).

False

Widget Identifier (widgetIdentifier)

token

An optional unique identifier for the widget. Can be used to refer to this widget in other places such as the OnWidgetClicked node.

Text (text)

string

The text that is displayed on the button

style

string

Style to be applied to the button. This can later be changed with the WriteWidgetStyle node.

Size (size)

double[2]

The width and height of the created widget. Value of 0 means the created widget will be just large enough to fit everything.

Outputs

Name

Type

Description

Default

Created (created)

execution

Executed when the widget is created

Widget Path (widgetPath)

token

The absolute path to the created widget