Class TMP_BaseShaderGUI.ShaderFeature
Representation of a #pragma shader_feature.
Inheritance
TMP_BaseShaderGUI.ShaderFeature
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
Field Value
label
Declaration
Field Value
Type |
Description |
GUIContent |
|
undoLabel
Declaration
Field Value
Properties
Active
Declaration
public bool Active { get; }
Property Value
State
Declaration
public int State { get; }
Property Value
Methods
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 |
|