Search Results for

    Show / Hide Table of Contents

    Class ColorControl

    Represents a control for a color property.

    Inheritance
    Object
    SimpleControl
    PropertyControl
    ColorControl
    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.

    Extension Methods

    Chainables.Alias<T>(T, String)
    Chainables.SetVisibility<T>(T, Boolean)
    Chainables.SetEnabled<T>(T, Boolean)
    Chainables.SetShowAlphaValue<T>(T, Boolean)
    In This Article
    Back to top Copyright © VRLabs.
    Generated by DocFX