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 |