docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TMP_BaseShaderGUI.ShaderFeature

    Representation of a #pragma shader_feature.

    Inheritance
    object
    TMP_BaseShaderGUI.ShaderFeature
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: TMPro.EditorUtilities
    Assembly: Unity.TextMeshPro.Editor.dll
    Syntax
    protected class TMP_BaseShaderGUI.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
    bool

    State

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

    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(bool, Material)

    Declaration
    public void SetActive(bool active, Material material)
    Parameters
    Type Name Description
    bool active
    Material material
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)