Search Results for

    Show / Hide Table of Contents

    Class KeywordToggleControl

    Represents a control with a checkbox for toggling a keyword on and off.

    Inheritance
    Object
    SimpleControl
    KeywordToggleControl
    KeywordToggleListControl
    KeywordToggleListControl
    Namespace: VRLabs.SimpleShaderInspectors.Controls
    Syntax
    public class KeywordToggleControl : SimpleControl
    Remarks

    With this control, by passing the keyword name you can have a toggle that will enable and disable the keyword on the material.

    Examples

    Example usage:

    this.AddKeywordToggleControl("KEYWORD_TO_TOGGLE");

    By default the keyword name will be used as Alias.

    Constructors

    Name Description
    KeywordToggleControl(String)

    Default constructor of KeywordToggleControl

    Fields

    Name Description
    keyword

    Keyword that this toggle sets on and off, once set by the constructor it cannot be changed.

    Properties

    Name Description
    HasKeywordUpdated

    Boolean indicating if the keyword state has updated.

    ToggleEnabled

    Boolean indicating if the toggle is enabled or not.

    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)
    In This Article
    Back to top Copyright © VRLabs.
    Generated by DocFX