Class ToggleListControl
Represents a control with a checkbox for setting a float property to 2 defined values. Also shows and hides a list of controls based on its state.
Implements
Namespace: VRLabs.SimpleShaderInspectors.Controls
Syntax
public class ToggleListControl : ToggleControl, IControlContainer
Remarks
It's effectively a combination of ToggleListControl and ControlContainer, where the controls list is displayed only when the toggle is enabled.
Examples
Example usage:
// adds a toggle that toggles between 0 and 1
this.AddToggleListControl("_ExampleProperty");
// adds a toggle that toggles between 3 and 7
this.AddToggleListControl("_ExampleProperty", 3, 7);
Constructors
| Name | Description |
|---|---|
| ToggleListControl(String, Single, Single) | Default constructor of ToggleListControl |
Properties
| Name | Description |
|---|---|
| Controls | List of controls that can be hidden by this control. |
Methods
| Name | Description |
|---|---|
| AddControl(SimpleControl) | Implementation needed by IControlContainer to add controls. All controls added are stored in Controls |
| ControlGUI(MaterialEditor) | Draws the control represented by this object. |
| GetControlList() | Implementation needed by IControlContainer to get the object's controls list. |