public class Editor.Checkbox : Editor.Widget
A generic checkbox widget.
Related Guides
Broader workflow and conceptual references connected to this API.
Attributes are the bridge to pass information around the CPU to the GPU, like Variables, Textures or entire Buffers.
You can add attributes to your Component's properties in C# to change how they look in the editor/inspector.
A trigger is a collider that detects when other physics objects enter or exit it, without blocking their movement. They're useful for things like pickup zones, death planes, checkpoints, and area detection.
Constructors
Showing 3 constructors
No results match this filter.
Methods
Showing 5 methods
protected virtual void OnClicked()
Called when checkbox was clicked, on release.
protected virtual void OnPressed()
Called when checkbox was pressed down.
protected virtual void OnReleased()
Called when checkbox was released.
protected virtual void OnStateChanged(Editor.CheckState state)
Called when the `Editor.Checkbox.State` of the checkbox states.
protected virtual void OnToggled()
Called when checkbox gets toggled on or off.
No results match this filter.
Properties
Showing 5 properties
public string Editor.Checkbox.Icon { get; set; }
Name of a material icon to be drawn in front of the checkbox label.
public Editor.CheckState Editor.Checkbox.State { get; set; }
Current state of this checkbox.
public string Editor.Checkbox.Text { get; set; }
The checkbox label.
public bool Editor.Checkbox.TriState { get; set; }
Enable the third state, the half checked half not checked state. Disabled by default
public bool Editor.Checkbox.Value { get; set; }
Whether the checkbox is checked or not.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Editor |
| Type | class |
| Assembly | Sandbox.Tools |
| Doc ID | T:Editor.Checkbox |