Class ColorControl
Represents a control for a color property.
Namespace: VRLabs.SimpleShaderInspectors.Controls
Syntax
public class ColorControl : PropertyControl
Remarks
It is the control to use whenever there's a need to display a color material property.
Examples
Initialize the control inside the inspector:
// initialize a color control that does not show the alpha value in the field.
this.AddColorControl("_ExampleColorProperty", false);
Constructors
| Name | Description |
|---|---|
| ColorControl(String, Boolean) | Default constructor of ColorControl |
Properties
| Name | Description |
|---|---|
| SelectedColor | Selected color of the property stored in this control. |
| ShowAlphaValue | Boolean that determines if the color picker and the color field should show the alpha value. |
Methods
| Name | Description |
|---|---|
| ControlGUI(MaterialEditor) | Draws the control represented by this object. |