Class TMP_BaseShaderGUI
Base class for TextMesh Pro shader GUIs.
Inheritance
TMP_BaseShaderGUI
Inherited Members
UnityEditor.ShaderGUI.OnMaterialInteractivePreviewGUI(UnityEditor.MaterialEditor, UnityEngine.Rect, UnityEngine.GUIStyle)
Syntax
public abstract class TMP_BaseShaderGUI : ShaderGUI
Fields
m_Editor
Declaration
protected MaterialEditor m_Editor
Field Value
m_Material
Declaration
protected Material m_Material
Field Value
m_Properties
Declaration
protected MaterialProperty[] m_Properties
Field Value
s_DebugExtended
Declaration
protected static bool s_DebugExtended
Field Value
s_LbrtVectorLabels
Declaration
protected static GUIContent[] s_LbrtVectorLabels
Field Value
s_XywhVectorLabels
Declaration
protected static GUIContent[] s_XywhVectorLabels
Field Value
Methods
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
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
DoVector(String, String, GUIContent[])
Declaration
protected void DoVector(string name, string label, GUIContent[] subLabels)
Parameters
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
Overrides