Class ControlContainer
Represents a group of controls.
Implements
Namespace: VRLabs.SimpleShaderInspectors.Controls
Syntax
public class ControlContainer : SimpleControl, IControlContainer
Remarks
This control has no UI for itself, instead it just displays all controls it has inside itself.
It can be useful whenever you need to enable, disable or, in general, manage an entire group of controls at once.
Since it has no UI, it does not need an alias, and setting one would not do much.
Examples
Example Usage:
// Create control
ControlContainer control = this.AddControlContainer();
// Add controls inside of it
control.AddPropertyControl("_ExampleProperty");
control.AddColorControl("_ExampleColor");
Constructors
| Name | Description |
|---|---|
| ControlContainer() | Default constructor of ControlContainer. |
Properties
| Name | Description |
|---|---|
| Controls | List of controls under 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. |