docs.unity3d.com
    Show / Hide Table of Contents

    Class TMP_BaseShaderGUI.ShaderFeature

    Representation of a #pragma shader_feature.

    Inheritance
    Object
    TMP_BaseShaderGUI.ShaderFeature
    Namespace: TMPro.EditorUtilities
    Syntax
    protected class ShaderFeature

    Fields

    keywordLabels

    The keyword labels, for display. Include the no-keyword as the first option.

    Declaration
    public GUIContent[] keywordLabels
    Field Value
    Type Description
    GUIContent[]

    keywords

    The shader keywords. Exclude the no-keyword option.

    Declaration
    public string[] keywords
    Field Value
    Type Description
    String[]

    label

    Declaration
    public GUIContent label
    Field Value
    Type Description
    GUIContent

    undoLabel

    Declaration
    public string undoLabel
    Field Value
    Type Description
    String

    Properties

    Active

    Declaration
    public bool Active { get; }
    Property Value
    Type Description
    Boolean

    State

    Declaration
    public int State { get; }
    Property Value
    Type Description
    Int32

    Methods

    DoPopup(MaterialEditor, Material)

    Declaration
    public void DoPopup(MaterialEditor editor, Material material)
    Parameters
    Type Name Description
    MaterialEditor editor
    Material material

    ReadState(Material)

    Declaration
    public void ReadState(Material material)
    Parameters
    Type Name Description
    Material material

    SetActive(Boolean, Material)

    Declaration
    public void SetActive(bool active, Material material)
    Parameters
    Type Name Description
    Boolean active
    Material material
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023