UI.ToggleAt

static bool ToggleAt(string text, Boolean& value, Vec3 topLeftCorner, Vec2 size)

A variant of UI.Toggle that doesn’t use the layout system, and instead goes exactly where you put it.

   
string text Text to display on the Toggle and id for tracking element state. MUST be unique within current hierarchy.
Vec3 topLeftCorner This is the top left corner of the UI element relative to the current Hierarchy.
Vec2 size The layout size for this element in Hierarchy space. If an axis is left as zero, it will be auto-calculated. For X this is the remaining width of the current layout, and for Y this is UI.LineHeight.
RETURNS: bool Will return true any time the toggle value changes, NOT the toggle value itself!




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