Class TMP_BaseShaderGUI
Base class for TextMesh Pro shader GUIs.
Inheritance
TMP_BaseShaderGUI
Syntax
public abstract class TMP_BaseShaderGUI : ShaderGUI
Fields
editor
Declaration
protected MaterialEditor editor
Field Value
Type |
Description |
MaterialEditor |
|
lbrtVectorLabels
Declaration
protected static GUIContent[] lbrtVectorLabels
Field Value
Type |
Description |
GUIContent[] |
|
material
Declaration
protected Material material
Field Value
Type |
Description |
Material |
|
properties
Declaration
protected MaterialProperty[] properties
Field Value
Type |
Description |
MaterialProperty[] |
|
xywhVectorLabels
Declaration
protected static GUIContent[] xywhVectorLabels
Field Value
Type |
Description |
GUIContent[] |
|
Methods
DoColor(String, String)
Declaration
protected void DoColor(string name, string label)
Parameters
DoCubeMap(String, String)
Declaration
protected void DoCubeMap(string name, string label)
Parameters
DoEmptyLine()
Declaration
protected void DoEmptyLine()
DoFloat(String, String)
Declaration
protected void DoFloat(string name, string label)
Parameters
DoGUI()
Override this method to create the specific shader GUI.
Declaration
protected abstract void DoGUI()
Declaration
protected bool DoPanelHeader(TMP_BaseShaderGUI.MaterialPanel panel)
Parameters
Returns
Declaration
protected bool DoPanelHeader(TMP_BaseShaderGUI.MaterialPanel panel, TMP_BaseShaderGUI.ShaderFeature feature, bool readState = true)
Parameters
Returns
Declaration
protected void DoPopup(string name, string label, GUIContent[] options)
Parameters
Type |
Name |
Description |
String |
name |
|
String |
label |
|
GUIContent[] |
options |
|
DoSlider(String, String)
Declaration
protected void DoSlider(string name, string label)
Parameters
DoTexture2D(String, String, Boolean, String[])
Declaration
protected void DoTexture2D(string name, string label, bool withTilingOffset = false, string[] speedNames = null)
Parameters
DoToggle(String, String)
Declaration
protected void DoToggle(string name, string label)
Parameters
DoUVSpeed(Rect, String[])
Declaration
protected void DoUVSpeed(Rect rect, string[] names)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
String[] |
names |
|
DoVector(String, String, GUIContent[])
Declaration
protected void DoVector(string name, string label, GUIContent[] subLabels)
Parameters
Type |
Name |
Description |
String |
name |
|
String |
label |
|
GUIContent[] |
subLabels |
|
DoVector3(String, String)
Declaration
protected void DoVector3(string name, string label)
Parameters
OnGUI(MaterialEditor, MaterialProperty[])
Declaration
public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
Parameters
Type |
Name |
Description |
MaterialEditor |
materialEditor |
|
MaterialProperty[] |
properties |
|