Class TMP_BaseShaderGUI
Base class for TextMesh Pro shader GUIs.
Inheritance
TMP_BaseShaderGUI
Syntax
public abstract class TMP_BaseShaderGUI : ShaderGUI
Fields
m_Editor
Declaration
protected MaterialEditor m_Editor
Field Value
Type |
Description |
MaterialEditor |
|
m_Material
Declaration
protected Material m_Material
Field Value
Type |
Description |
Material |
|
m_Properties
Declaration
protected MaterialProperty[] m_Properties
Field Value
Type |
Description |
MaterialProperty[] |
|
s_CullingTypeLabels
Declaration
protected static GUIContent[] s_CullingTypeLabels
Field Value
Type |
Description |
GUIContent[] |
|
s_DebugExtended
Declaration
protected static bool s_DebugExtended
Field Value
s_LbrtVectorLabels
Declaration
protected static GUIContent[] s_LbrtVectorLabels
Field Value
Type |
Description |
GUIContent[] |
|
s_XywhVectorLabels
Declaration
protected static GUIContent[] s_XywhVectorLabels
Field Value
Type |
Description |
GUIContent[] |
|
Methods
AssignNewShaderToMaterial(Material, Shader, Shader)
Declaration
public override void AssignNewShaderToMaterial(Material material, Shader oldShader, Shader newShader)
Parameters
Type |
Name |
Description |
Material |
material |
|
Shader |
oldShader |
|
Shader |
newShader |
|
BeginPanel(String, Boolean)
Declaration
protected bool BeginPanel(string panel, bool expanded)
Parameters
Returns
BeginPanel(String, TMP_BaseShaderGUI.ShaderFeature, Boolean, Boolean)
Declaration
protected bool BeginPanel(string panel, TMP_BaseShaderGUI.ShaderFeature feature, bool expanded, bool readState = true)
Parameters
Returns
DoColor(String, String)
Declaration
protected void DoColor(string name, string label)
Parameters
DoCubeMap(String, String)
Declaration
protected void DoCubeMap(string name, string label)
Parameters
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 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
EndPanel()
Declaration
OnGUI(MaterialEditor, MaterialProperty[])
Declaration
public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
Parameters
Type |
Name |
Description |
MaterialEditor |
materialEditor |
|
MaterialProperty[] |
properties |
|