Class TMP_TextUtilities
Inherited Members
Namespace: TMPro
Assembly: solution.dll
Syntax
public static class TMP_TextUtilities
Methods
Name | Description |
---|---|
DistanceToLine(Vector3, Vector3, Vector3) | Function returning the Square Distance from a Point to a Line. |
FindIntersectingCharacter(TMP_Text, Vector3, Camera, bool) | Function returning the index of the character at the given position (if any). |
FindIntersectingLine(TMP_Text, Vector3, Camera) | Function returning the line intersecting the position. |
FindIntersectingLink(TMP_Text, Vector3, Camera) | Function returning the index of the Link at the given position (if any). |
FindIntersectingWord(TMP_Text, Vector3, Camera) | Function returning the index of the word at the given position (if any). |
FindNearestCharacter(TMP_Text, Vector3, Camera, bool) | Function to find the nearest character to position. |
FindNearestCharacterOnLine(TMP_Text, Vector3, int, Camera, bool) | Function returning the nearest character to position on a given line. |
FindNearestLine(TMP_Text, Vector3, Camera) | Function returning the line nearest to the position. |
FindNearestLink(TMP_Text, Vector3, Camera) | Function returning the index of the word at the given position (if any). |
FindNearestWord(TMP_Text, Vector3, Camera) | Function returning the index of the word at the given position (if any). |
GetCursorIndexFromPosition(TMP_Text, Vector3, Camera) | Function returning the index of the character whose origin is closest to the cursor. |
GetCursorIndexFromPosition(TMP_Text, Vector3, Camera, out CaretPosition) | Function returning the index of the character whose origin is closest to the cursor. |
GetHashCode(string) | Returns the case insensitive hashcode for the given string. |
GetSimpleHashCode(string) | Function which returns a simple hashcode from a string. |
GetSimpleHashCodeLowercase(string) | Function which returns a simple hashcode from a string converted to lowercase. |
HexToInt(char) | Function to convert Hex to Int |
IsIntersectingRectTransform(RectTransform, Vector3, Camera) | Function used to determine if the position intersects with the RectTransform. |
ScreenPointToWorldPointInRectangle(Transform, Vector2, Camera, out Vector3) | Method to convert ScreenPoint to WorldPoint aligned with Rectangle |
StringHexToInt(string) | Function to convert a properly formatted string which contains an hex value to its decimal value. |
ToLowerFast(char) | Get lowercase version of this ASCII character. |
ToUpperFast(char) | Get uppercase version of this ASCII character. |