Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
TMPro.EditorUtilities.TMP_BaseShaderGUI Class Referenceabstract

Base class for TextMesh Pro shader GUIs. More...

Inheritance diagram for TMPro.EditorUtilities.TMP_BaseShaderGUI:
TMPro.EditorUtilities.TMP_BitmapShaderGUI TMPro.EditorUtilities.TMP_SDFShaderGUI

Classes

class  MaterialPanel
 Material panel that keeps track of whether the user opened or closed it. More...
 
class  ShaderFeature
 Representation of a #pragma shader_feature. More...
 

Public Member Functions

override void OnGUI (MaterialEditor materialEditor, MaterialProperty[] properties)
 

Protected Member Functions

void DoColor (string name, string label)
 
void DoCubeMap (string name, string label)
 
void DoEmptyLine ()
 
void DoFloat (string name, string label)
 
abstract void DoGUI ()
 Override this method to create the specific shader GUI. More...
 
bool DoPanelHeader (MaterialPanel panel)
 
bool DoPanelHeader (MaterialPanel panel, ShaderFeature feature, bool readState=true)
 
void DoPopup (string name, string label, GUIContent[] options)
 
void DoSlider (string name, string label)
 
void DoTexture2D (string name, string label, bool withTilingOffset=false, string[] speedNames=null)
 
void DoToggle (string name, string label)
 
void DoUVSpeed (Rect rect, string[] names)
 
void DoVector (string name, string label, GUIContent[] subLabels)
 
void DoVector3 (string name, string label)
 

Protected Attributes

MaterialEditor editor
 
Material material
 
MaterialProperty[] properties
 

Static Protected Attributes

static GUIContent[] lbrtVectorLabels
 
static GUIContent[] xywhVectorLabels
 

Detailed Description

Base class for TextMesh Pro shader GUIs.

Member Function Documentation

void TMPro.EditorUtilities.TMP_BaseShaderGUI.DoColor ( string  name,
string  label 
)
inlineprotected
void TMPro.EditorUtilities.TMP_BaseShaderGUI.DoCubeMap ( string  name,
string  label 
)
inlineprotected
void TMPro.EditorUtilities.TMP_BaseShaderGUI.DoEmptyLine ( )
inlineprotected
void TMPro.EditorUtilities.TMP_BaseShaderGUI.DoFloat ( string  name,
string  label 
)
inlineprotected
abstract void TMPro.EditorUtilities.TMP_BaseShaderGUI.DoGUI ( )
protectedpure virtual

Override this method to create the specific shader GUI.

Implemented in TMPro.EditorUtilities.TMP_SDFShaderGUI, and TMPro.EditorUtilities.TMP_BitmapShaderGUI.

bool TMPro.EditorUtilities.TMP_BaseShaderGUI.DoPanelHeader ( MaterialPanel  panel)
inlineprotected
bool TMPro.EditorUtilities.TMP_BaseShaderGUI.DoPanelHeader ( MaterialPanel  panel,
ShaderFeature  feature,
bool  readState = true 
)
inlineprotected
void TMPro.EditorUtilities.TMP_BaseShaderGUI.DoPopup ( string  name,
string  label,
GUIContent[]  options 
)
inlineprotected
void TMPro.EditorUtilities.TMP_BaseShaderGUI.DoSlider ( string  name,
string  label 
)
inlineprotected
void TMPro.EditorUtilities.TMP_BaseShaderGUI.DoTexture2D ( string  name,
string  label,
bool  withTilingOffset = false,
string[]  speedNames = null 
)
inlineprotected
void TMPro.EditorUtilities.TMP_BaseShaderGUI.DoToggle ( string  name,
string  label 
)
inlineprotected
void TMPro.EditorUtilities.TMP_BaseShaderGUI.DoUVSpeed ( Rect  rect,
string[]  names 
)
inlineprotected
void TMPro.EditorUtilities.TMP_BaseShaderGUI.DoVector ( string  name,
string  label,
GUIContent[]  subLabels 
)
inlineprotected
void TMPro.EditorUtilities.TMP_BaseShaderGUI.DoVector3 ( string  name,
string  label 
)
inlineprotected
override void TMPro.EditorUtilities.TMP_BaseShaderGUI.OnGUI ( MaterialEditor  materialEditor,
MaterialProperty[]  properties 
)
inline

Member Data Documentation

MaterialEditor TMPro.EditorUtilities.TMP_BaseShaderGUI.editor
protected
GUIContent [] TMPro.EditorUtilities.TMP_BaseShaderGUI.lbrtVectorLabels
staticprotected
Initial value:
= {
new GUIContent("L", "Left"),
new GUIContent("B", "Bottom"),
new GUIContent("R", "Right"),
new GUIContent("T", "Top")
}
Material TMPro.EditorUtilities.TMP_BaseShaderGUI.material
protected
MaterialProperty [] TMPro.EditorUtilities.TMP_BaseShaderGUI.properties
protected
GUIContent [] TMPro.EditorUtilities.TMP_BaseShaderGUI.xywhVectorLabels
staticprotected
Initial value:
= {
new GUIContent("X"),
new GUIContent("Y"),
new GUIContent("W", "Width"),
new GUIContent("H", "Height")
}

The documentation for this class was generated from the following file: