Class TMP_EditorUtility
Inheritance
System.Object
TMP_EditorUtility
Inherited Members
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 static class TMP_EditorUtility
Properties
packageFullPath
Returns the fully qualified path of the package.
Declaration
public static string packageFullPath { get; }
Property Value
Type |
Description |
System.String |
|
packageRelativePath
Returns the relative path of the package.
Declaration
public static string packageRelativePath { get; }
Property Value
Type |
Description |
System.String |
|
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 |
System.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
Type |
Name |
Description |
Rect |
rect |
|
System.Single |
thickness |
|
Color |
color |
|
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
Type |
Description |
System.Boolean |
|
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 |
System.Int32[] |
characterSet |
|
Returns
Type |
Description |
System.String |
|
GetHorizontalAlignmentGridValue(Int32)
Function to return the horizontal alignment grid value.
Declaration
public static int GetHorizontalAlignmentGridValue(int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
Returns
Type |
Description |
System.Int32 |
|
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 |
System.Int32[] |
characterSet |
|
Returns
Type |
Description |
System.String |
|
GetVerticalAlignmentGridValue(Int32)
Function to return the vertical alignment grid value.
Declaration
public static int GetVerticalAlignmentGridValue(int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
Returns
Type |
Description |
System.Int32 |
|
RepaintAll()
Declaration
public static void RepaintAll()