Class TMP_BaseShaderGUI
Base class for TextMesh Pro shader GUIs.
Inheritance
System.Object
TMP_BaseShaderGUI
Inherited Members
UnityEditor.ShaderGUI.OnMaterialInteractivePreviewGUI(UnityEditor.MaterialEditor, UnityEngine.Rect, UnityEngine.GUIStyle)
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()
Syntax
public abstract class TMP_BaseShaderGUI : ShaderGUI
Fields
editor
Declaration
protected MaterialEditor editor
Field Value
lbrtVectorLabels
Declaration
protected static GUIContent[] lbrtVectorLabels
Field Value
material
Declaration
protected Material material
Field Value
properties
Declaration
protected MaterialProperty[] properties
Field Value
xywhVectorLabels
Declaration
protected static GUIContent[] xywhVectorLabels
Field Value
Methods
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 |
|
DoEmptyLine()
Declaration
protected void DoEmptyLine()
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()
Declaration
protected bool DoPanelHeader(TMP_BaseShaderGUI.MaterialPanel panel)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool DoPanelHeader(TMP_BaseShaderGUI.MaterialPanel panel, TMP_BaseShaderGUI.ShaderFeature feature, bool readState = true)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected void DoPopup(string name, string label, GUIContent[] options)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
label |
|
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 |
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 |
|
GUIContent[] |
subLabels |
|
DoVector3(String, String)
Declaration
protected void DoVector3(string name, string label)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
label |
|
OnGUI(MaterialEditor, MaterialProperty[])
Declaration
public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
Parameters
Overrides