Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Properties | List of all members
TMPro.EditorUtilities.TMP_BaseShaderGUI.ShaderFeature Class Reference

Representation of a #pragma shader_feature. More...

Public Member Functions

void DoPopup (MaterialEditor editor, Material material)
 
void ReadState (Material material)
 
void SetActive (bool active, Material material)
 

Public Attributes

GUIContent[] keywordLabels
 The keyword labels, for display. Include the no-keyword as the first option. More...
 
string[] keywords
 The shader keywords. Exclude the no-keyword option. More...
 
GUIContent label
 
string undoLabel
 

Properties

bool Active [get]
 
int State [get]
 

Detailed Description

Representation of a #pragma shader_feature.

It is assumed that the first feature option is for no keyword (underscores).

Member Function Documentation

void TMPro.EditorUtilities.TMP_BaseShaderGUI.ShaderFeature.DoPopup ( MaterialEditor  editor,
Material  material 
)
inline
void TMPro.EditorUtilities.TMP_BaseShaderGUI.ShaderFeature.ReadState ( Material  material)
inline
void TMPro.EditorUtilities.TMP_BaseShaderGUI.ShaderFeature.SetActive ( bool  active,
Material  material 
)
inline

Member Data Documentation

GUIContent [] TMPro.EditorUtilities.TMP_BaseShaderGUI.ShaderFeature.keywordLabels

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

string [] TMPro.EditorUtilities.TMP_BaseShaderGUI.ShaderFeature.keywords

The shader keywords. Exclude the no-keyword option.

GUIContent TMPro.EditorUtilities.TMP_BaseShaderGUI.ShaderFeature.label
string TMPro.EditorUtilities.TMP_BaseShaderGUI.ShaderFeature.undoLabel

Property Documentation

bool TMPro.EditorUtilities.TMP_BaseShaderGUI.ShaderFeature.Active
get
int TMPro.EditorUtilities.TMP_BaseShaderGUI.ShaderFeature.State
get

The documentation for this class was generated from the following file: