docs.unity3d.com
    Show / Hide Table of Contents

    Class TMP_BaseShaderGUI.ShaderFeature

    Representation of a #pragma shader_feature.

    Inheritance
    System.Object
    TMP_BaseShaderGUI.ShaderFeature
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    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
    System.String[]

    label

    Declaration
    public GUIContent label
    Field Value
    Type Description
    GUIContent

    undoLabel

    Declaration
    public string undoLabel
    Field Value
    Type Description
    System.String

    Properties

    Active

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

    State

    Declaration
    public int State { get; }
    Property Value
    Type Description
    System.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
    System.Boolean active
    Material material
    Back to top
    Copyright © 2025 Unity Technologies
    • 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 02 April 2025