UI Nodes

You may have seen the omni.ui extension that gives you the ability to create user interface elements through Python scripting. OmniGraph provides some nodes that can be used to do the same thing through an action graph.

These nodes provide an interface to the equivalent omni.ui script elements. The attributes of the nodes match the parameters you would pass to the script.

Node

omni.ui Equivalent

Button

omni.ui.Button

ComboBox

omni.ui.ComboBox

OnWidgetClicked

omni.ui.Widget.call_mouse_pressed_fn

OnWidgetValueChanged

omni.ui.Widget.add_value_changed_fn

Slider

omni.ui.IntSlider omni.ui.FloatSlider

VStack

omni.ui.VStack

How To Use Them

The UI nodes are meant to be triggered to exist temporarily, meaning you want to ensure that they are part of a graph that creates them only once and then destroys them once their utility has ended.