Search Results for

    Show / Hide Table of Contents

    Class PropertyControl

    Represents a general purpose control for a property that will be drawn based on the property type.

    Inheritance
    Object
    SimpleControl
    PropertyControl
    ColorControl
    ColorControl
    VRLabs.SimpleShaderInspectors.Controls.ConditionalControlContainer
    EnumControl<TEnum>
    EnumControl<TEnum>
    VRLabs.SimpleShaderInspectors.Controls.RGBASelectorControl
    Section
    Section
    TextureControl
    TextureControl
    TilingAndOffsetControl
    TilingAndOffsetControl
    ToggleControl
    ToggleControl
    VectorControl
    VectorControl
    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.

    Extension Methods

    Chainables.Alias<T>(T, String)
    Chainables.SetVisibility<T>(T, Boolean)
    Chainables.SetEnabled<T>(T, Boolean)

    See Also

    SimpleControl
    In This Article
    Back to top Copyright © VRLabs.
    Generated by DocFX