Toggle¶
Object ยท UI
A two-state on/off switch control with an animated pill track and thumb knob.
Components¶
A new Toggle starts with these components.
| Component | About |
|---|---|
| Box | Screen-space rectangle; scale is a parent fraction, offset pixels |
| UIOrder | Draw and list order among siblings |
| UIToggle | A two-state switch with a pill track and a round knob |
| UIToggleOn | The switch is in the on position |
| UIToggleButton | A click latches the button pressed; the next click releases it |
| UIToggleMixed | The knob rests halfway for a group that is partly on |
| UIToggleArt | Skins the track and knob of a switch with textures |
| UICheckbox | A square box that shows a check mark while checked |
| UIChecked | The box shows its check mark |
| UIHidden | Hides the entity and its subtree; the renderer skips it |
| UIDisabled | Draws the control dim and refuses the pointer and the key; absent means usable |
| UITransform | Turns and scales the element and its children after layout; the pointer follows the turned shape |