Api Editor Checkbox
class

Checkbox

public class Checkbox : Widget

A generic checkbox widget.

Constructors

Checkbox(Widget parent)
Checkbox(String title, Widget parent)
Checkbox(String title, String icon, Widget parent)

Properties

Name Type Description
Text String The checkbox label.
Value Boolean Whether the checkbox is checked or not.
State CheckState Current state of this checkbox.
TriState Boolean Enable the third state, the half checked half not checked state. Disabled by default
Icon String Name of a material icon to be drawn in front of the checkbox label.

Fields

Name Type Description
Clicked Action
Pressed Action
Released Action
Toggled Action
StateChanged Action<CheckState>
Assembly: Sandbox.Tools Namespace: Editor Full Name: Editor.Checkbox