Scripting API

TMPro_ExtensionMethods

static class in TMPro · Unity.TextMeshPro

9 of 9 of Unity's members
In Tassix

Small helpers TextMesh Pro's samples use: comparing and tinting colors, comparing vectors.

Methods 9

static string ArrayToString(this char[] chars)

The characters up to the first null.

static bool Compare(this Color32 a, Color32 b)
static bool Compare(this Color a, Color b)
static bool Compare(this Vector3 v1, Vector3 v2, int accuracy)
static bool Compare(this Quaternion q1, Quaternion q2, int accuracy)

Equal when each component's difference, times accuracy and truncated, is zero.

static bool CompareRGB(this Color32 a, Color32 b)
static bool CompareRGB(this Color a, Color b)
static int FindInstanceID<T>(this List<T> list, T target)
static string IntToString(this int[] unicodes)
static string IntToString(this int[] unicodes, int start, int length)
static Color MinAlpha(this Color c1, Color c2)
static Color32 Multiply(this Color32 c1, Color32 c2)
static Color32 Tint(this Color32 c1, Color32 c2)
static Color32 Tint(this Color32 c1, float tint)

Every channel (alpha too) scaled by tint, clamped.

static int[] ToIntArray(this string text)