Class PropertyControl
Represents a general purpose control for a property that will be drawn based on the property type.
Inheritance
PropertyControl
VRLabs.SimpleShaderInspectors.Controls.ConditionalControlContainer
VRLabs.SimpleShaderInspectors.Controls.RGBASelectorControl
Namespace: VRLabs.SimpleShaderInspectors
Syntax
public class PropertyControl : SimpleControl
Remarks
You can see this control as the Simple Shader Inspectors equivalent of MaterialEditor.ShaderProperty since it draws all properties in a generic way.
Examples
Initialize the control inside the inspector:
this.AddPropertyControl("_ExampleProperty");
Constructors
| Name | Description |
|---|---|
| PropertyControl(String) | Default constructor of PropertyControl. |
Properties
| Name | Description |
|---|---|
| HasPropertyUpdated | Boolean indicating if this control updated its property value. |
| Property | MaterialProperty related to the property shown by this control. |
| PropertyName | Name of the property shown by this control. |
Methods
| Name | Description |
|---|---|
| ControlGUI(MaterialEditor) | Draws the control represented by this object. |