Class TMP_EditorUtility
  
Inheritance
TMP_EditorUtility
 
Syntax
public static class TMP_EditorUtility
 
Properties
  
packageFullPath
Returns the fully qualified path of the package.
 
Declaration
public static string packageFullPath { get; }
 
Property Value
packageRelativePath
Returns the relative path of the package.
 
Declaration
public static string packageRelativePath { get; }
 
Property Value
Methods
  
CreateAsset<T>(String)
Create and return a new asset in a smart location based on the current selection and then select it.
 
Declaration
public static T CreateAsset<T>(string name)
    where T : ScriptableObject
 
Parameters
| Type | 
Name | 
Description | 
| String | 
name | 
Name of the new asset. Do not include the .asset extension. 
 | 
Returns
| Type | 
Description | 
| T | 
The new asset. 
 | 
Type Parameters
DrawBox(Rect, Single, Color)
Declaration
public static void DrawBox(Rect rect, float thickness, Color color)
 
Parameters
DrawColorProperty(Rect, SerializedProperty)
Declaration
public static void DrawColorProperty(Rect rect, SerializedProperty property)
 
Parameters
EditorToggle(Rect, Boolean, GUIContent, GUIStyle)
Declaration
public static bool EditorToggle(Rect position, bool value, GUIContent content, GUIStyle style)
 
Parameters
Returns
FindMatchingFontAsset(Material)
Declaration
public static TMP_FontAsset FindMatchingFontAsset(Material mat)
 
Parameters
Returns
FindMaterialReferences(TMP_FontAsset)
Declaration
public static Material[] FindMaterialReferences(TMP_FontAsset fontAsset)
 
Parameters
Returns
GetDecimalCharacterSequence(Int32[])
Function which returns a string containing a sequence of Decimal character ranges.
 
Declaration
public static string GetDecimalCharacterSequence(int[] characterSet)
 
Parameters
| Type | 
Name | 
Description | 
| Int32[] | 
characterSet | 
 | 
Returns
GetHorizontalAlignmentGridValue(Int32)
Function to return the horizontal alignment grid value.
 
Declaration
public static int GetHorizontalAlignmentGridValue(int value)
 
Parameters
| Type | 
Name | 
Description | 
| Int32 | 
value | 
 | 
Returns
GetUnicodeCharacterSequence(Int32[])
Function which returns a string containing a sequence of Unicode (Hex) character ranges.
 
Declaration
public static string GetUnicodeCharacterSequence(int[] characterSet)
 
Parameters
| Type | 
Name | 
Description | 
| Int32[] | 
characterSet | 
 | 
Returns
GetVerticalAlignmentGridValue(Int32)
Function to return the vertical alignment grid value.
 
Declaration
public static int GetVerticalAlignmentGridValue(int value)
 
Parameters
| Type | 
Name | 
Description | 
| Int32 | 
value | 
 | 
Returns
RepaintAll()
Declaration
public static void RepaintAll()