Class TMP_BaseShaderGUI
Base class for TextMesh Pro shader GUIs.
Inheritance
System.Object
UnityEditor.ShaderGUI
TMP_BaseShaderGUI
Inherited Members
UnityEditor.ShaderGUI.OnMaterialPreviewGUI(UnityEditor.MaterialEditor, UnityEngine.Rect, UnityEngine.GUIStyle)
UnityEditor.ShaderGUI.OnMaterialInteractivePreviewGUI(UnityEditor.MaterialEditor, UnityEngine.Rect, UnityEngine.GUIStyle)
UnityEditor.ShaderGUI.OnMaterialPreviewSettingsGUI(UnityEditor.MaterialEditor)
UnityEditor.ShaderGUI.OnClosed(UnityEngine.Material)
UnityEditor.ShaderGUI.AssignNewShaderToMaterial(UnityEngine.Material, UnityEngine.Shader, UnityEngine.Shader)
UnityEditor.ShaderGUI.ValidateMaterial(UnityEngine.Material)
UnityEditor.ShaderGUI.FindProperty(System.String, UnityEditor.MaterialProperty[])
UnityEditor.ShaderGUI.FindProperty(System.String, UnityEditor.MaterialProperty[], System.Boolean)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: TMPro.EditorUtilities
Syntax
public abstract class TMP_BaseShaderGUI : ShaderGUI
Fields
m_Editor
Declaration
protected MaterialEditor m_Editor
Field Value
Type | Description |
---|---|
UnityEditor.MaterialEditor |
m_Material
Declaration
protected Material m_Material
Field Value
Type | Description |
---|---|
UnityEngine.Material |
m_Properties
Declaration
protected MaterialProperty[] m_Properties
Field Value
Type | Description |
---|---|
UnityEditor.MaterialProperty[] |
s_DebugExtended
Declaration
protected static bool s_DebugExtended
Field Value
Type | Description |
---|---|
System.Boolean |
s_LbrtVectorLabels
Declaration
protected static GUIContent[] s_LbrtVectorLabels
Field Value
Type | Description |
---|---|
UnityEngine.GUIContent[] |
s_XywhVectorLabels
Declaration
protected static GUIContent[] s_XywhVectorLabels
Field Value
Type | Description |
---|---|
UnityEngine.GUIContent[] |
Methods
BeginPanel(String, Boolean)
Declaration
protected bool BeginPanel(string panel, bool expanded)
Parameters
Type | Name | Description |
---|---|---|
System.String | panel | |
System.Boolean | expanded |
Returns
Type | Description |
---|---|
System.Boolean |
BeginPanel(String, TMP_BaseShaderGUI.ShaderFeature, Boolean, Boolean)
Declaration
protected bool BeginPanel(string panel, TMP_BaseShaderGUI.ShaderFeature feature, bool expanded, bool readState = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | panel | |
TMP_BaseShaderGUI.ShaderFeature | feature | |
System.Boolean | expanded | |
System.Boolean | readState |
Returns
Type | Description |
---|---|
System.Boolean |
DoColor(String, String)
Declaration
protected void DoColor(string name, string label)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | label |
DoCubeMap(String, String)
Declaration
protected void DoCubeMap(string name, string label)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | label |
DoFloat(String, String)
Declaration
protected void DoFloat(string name, string label)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | label |
DoGUI()
Override this method to create the specific shader GUI.
Declaration
protected abstract void DoGUI()
DoPopup(String, String, GUIContent[])
Declaration
protected void DoPopup(string name, string label, GUIContent[] options)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | label | |
UnityEngine.GUIContent[] | options |
DoSlider(String, String)
Declaration
protected void DoSlider(string name, string label)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | label |
DoTexture2D(String, String, Boolean, String[])
Declaration
protected void DoTexture2D(string name, string label, bool withTilingOffset = false, string[] speedNames = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | label | |
System.Boolean | withTilingOffset | |
System.String[] | speedNames |
DoToggle(String, String)
Declaration
protected void DoToggle(string name, string label)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | label |
DoUVSpeed(Rect, String[])
Declaration
protected void DoUVSpeed(Rect rect, string[] names)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Rect | rect | |
System.String[] | names |
DoVector(String, String, GUIContent[])
Declaration
protected void DoVector(string name, string label, GUIContent[] subLabels)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | label | |
UnityEngine.GUIContent[] | subLabels |
DoVector3(String, String)
Declaration
protected void DoVector3(string name, string label)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | label |
EndPanel()
Declaration
public void EndPanel()
OnGUI(MaterialEditor, MaterialProperty[])
Declaration
public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
Parameters
Type | Name | Description |
---|---|---|
UnityEditor.MaterialEditor | materialEditor | |
UnityEditor.MaterialProperty[] | properties |
Overrides
UnityEditor.ShaderGUI.OnGUI(UnityEditor.MaterialEditor, UnityEditor.MaterialProperty[])