UI.Input

static bool Input(string id, String& value, Vec2 size)

   
string id A per-window unique id for tracking element state.
String& value The string that will store the Input’s content in.
Vec2 size Size of the Input in Hierarchy local meters.
RETURNS: bool Returns true every time the contents of ‘value’ change.

This is an input field where users can input text to the app! Selecting it will spawn a virtual keyboard, or act as the keyboard focus. Hitting escape or enter, or focusing another UI element will remove focus from this Input.

static bool Input(string id, String& value)

   
string id A per-window unique id for tracking element state.
String& value The string that will store the Input’s content in.
RETURNS: bool Returns true every time the contents of ‘value’ change.

This is an input field where users can input text to the app! Selecting it will spawn a virtual keyboard, or act as the keyboard focus. Hitting escape or enter, or focusing another UI element will remove focus from this Input.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!