Kerbal Space Program
1.12.4
|
Static Public Member Functions | |
static float | DistanceToLine (Vector3 a, Vector3 b, Vector3 point) |
Function returning the Square Distance from a Point to a Line. More... | |
static int | FindIntersectingCharacter (TMP_Text text, Vector3 position, Camera camera, bool visibleOnly) |
Function returning the index of the character at the given position (if any). More... | |
static int | FindIntersectingLine (TMP_Text text, Vector3 position, Camera camera) |
Function returning the index of the word at the given position (if any). More... | |
static int | FindIntersectingLink (TMP_Text text, Vector3 position, Camera camera) |
Function returning the index of the Link at the given position (if any). More... | |
static int | FindIntersectingWord (TMP_Text text, Vector3 position, Camera camera) |
Function to find the nearest character to position. More... | |
static int | FindNearestCharacter (TMP_Text text, Vector3 position, Camera camera, bool visibleOnly) |
Function returning the index of the character at the given position (if any). More... | |
static int | FindNearestCharacterOnLine (TMP_Text text, Vector3 position, int line, Camera camera, bool visibleOnly) |
Function returning the nearest character to position on a given line. More... | |
static int | FindNearestLine (TMP_Text text, Vector3 position, Camera camera) |
Function returning the line nearest to the position. More... | |
static int | FindNearestLink (TMP_Text text, Vector3 position, Camera camera) |
Function returning the index of the Link at the given position (if any). More... | |
static int | FindNearestWord (TMP_Text text, Vector3 position, Camera camera) |
Function returning the index of the word at the given position (if any). More... | |
static int | GetCursorIndexFromPosition (TMP_Text textComponent, Vector3 position, Camera camera) |
static int | GetCursorIndexFromPosition (TMP_Text textComponent, Vector3 position, Camera camera, out CaretPosition cursor) |
Function returning the index of the character whose origin is closest to the cursor. More... | |
static int | GetSimpleHashCode (string s) |
Function which returns a simple hashcode from a string. More... | |
static uint | GetSimpleHashCodeLowercase (string s) |
Function which returns a simple hashcode from a string converted to lowercase. More... | |
static int | HexToInt (char hex) |
Function to convert Hex to Int More... | |
static bool | IsIntersectingRectTransform (RectTransform rectTransform, Vector3 position, Camera camera) |
Function used to determine if the position intersects with the RectTransform. More... | |
static bool | ScreenPointToWorldPointInRectangle (Transform transform, Vector2 screenPoint, Camera cam, out Vector3 worldPoint) |
Method to convert ScreenPoint to WorldPoint aligned with Rectangle More... | |
static int | StringToInt (string s) |
Function to convert a properly formatted string which contains an hex value to its decimal value. More... | |
static char | ToLowerFast (char c) |
Get lowercase version of this ASCII character. More... | |
static char | ToUpperFast (char c) |
Get uppercase version of this ASCII character. More... | |
|
inlinestatic |
Function returning the Square Distance from a Point to a Line.
a | |
b | |
point |
|
inlinestatic |
Function returning the index of the character at the given position (if any).
text | A reference to the TextMeshPro component. |
position | Position to check for intersection. |
camera | The scene camera which is rendering the text or whichever one might be assigned to a Canvas using ScreenSpace Camera or WorldSpace render mode. Set to null is using ScreenSpace Overlay. |
visibleOnly | Only check for visible characters. |
|
inlinestatic |
Function returning the index of the word at the given position (if any).
text | A reference to the TextMeshPro UGUI component. |
position | |
camera | The scene camera which may be assigned to a Canvas using ScreenSpace Camera or WorldSpace render mode. Set to null is using ScreenSpace Overlay. |
Function returning the index of the word at the given position (if any).
text | A reference to the TextMeshPro UGUI component. |
position | Position to check for intersection. |
camera | The camera which is rendering the text object. |
Function returning the line intersecting the position.
textComponent | |
position | |
camera |
|
inlinestatic |
Function returning the index of the Link at the given position (if any).
text | A reference to the TMP_Text component. |
position | Position to check for intersection. |
camera | The scene camera which may be assigned to a Canvas using ScreenSpace Camera or WorldSpace render mode. Set to null is using ScreenSpace Overlay. |
|
inlinestatic |
Function to find the nearest character to position.
text | A reference to the TextMeshPro UGUI component. |
position | Position to check for intersection. |
camera | The scene camera which may be assigned to a Canvas using ScreenSpace Camera or WorldSpace render mode. Set to null is using ScreenSpace Overlay. |
visibleOnly | Only check for visible characters. |
Function to find the nearest character to position.
text | A reference to the TextMeshPro component. |
position | Position to check for intersection. |
camera | The camera which is rendering the text object. |
visibleOnly | Only check for visible characters. |
Function returning the index of the word at the given position (if any).
text | A reference to the TMP_Text component. |
position | Position to check for intersection. |
camera | The scene camera which may be assigned to a Canvas using ScreenSpace Camera or WorldSpace render mode. Set to null is using ScreenSpace Overlay. |
|
inlinestatic |
Function returning the index of the character at the given position (if any).
text | A reference to the TextMeshPro UGUI component. |
position | Position to check for intersection. |
camera | The camera which is rendering the text object. |
visibleOnly | Only check for visible characters. |
Function to find the nearest character to position.
text | A reference to the TMP Text component. |
position | Position to check for intersection. |
camera | The scene camera which may be assigned to a Canvas using ScreenSpace Camera or WorldSpace render mode. Set to null is using ScreenSpace Overlay. |
visibleOnly | Only check for visible characters. |
|
inlinestatic |
Function returning the nearest character to position on a given line.
text | |
position | |
line | |
camera |
|
inlinestatic |
Function returning the line nearest to the position.
textComponent | |
position | |
camera |
|
inlinestatic |
Function returning the index of the Link at the given position (if any).
text | A reference to the TextMeshPro UGUI component. |
position | Position to check for intersection. |
camera | The scene camera which may be assigned to a Canvas using ScreenSpace Camera or WorldSpace render mode. Set to null is using ScreenSpace Overlay. |
Function returning the index of the Link at the given position (if any).
text | A reference to the TextMeshPro component. |
position | Position to check for intersection. |
camera | The camera which is rendering the text object. |
Function returning the index of the word at the given position (if any).
text | A reference to the TMP_Text component. |
position | Position to check for intersection. |
camera | The scene camera which may be assigned to a Canvas using ScreenSpace Camera or WorldSpace render mode. Set to null is using ScreenSpace Overlay. |
|
inlinestatic |
Function returning the index of the word at the given position (if any).
text | A reference to the TextMeshPro UGUI component. |
position | Position to check for intersection. |
camera | The scene camera which may be assigned to a Canvas using ScreenSpace Camera or WorldSpace render mode. Set to null is using ScreenSpace Overlay. |
Function returning the index of the word at the given position (if any).
text | A reference to the TextMeshPro component. |
position | Position to check for intersection. |
camera | The camera which is rendering the text object. |
Function returning the index of the word at the given position (if any).
text | A reference to the TMP_Text component. |
position | |
camera | The scene camera which may be assigned to a Canvas using ScreenSpace Camera or WorldSpace render mode. Set to null is using ScreenSpace Overlay. |
|
inlinestatic |
textComponent | A reference to the text object. |
position | Position to check for intersection. |
camera | The scene camera which may be assigned to a Canvas using ScreenSpace Camera or WorldSpace render mode. Set to null is using ScreenSpace Overlay. |
Function returning the index of the character whose origin is closest to the cursor.
textComponent | A reference to the text object. |
position | Position to check for intersection. |
camera | The scene camera which may be assigned to a Canvas using ScreenSpace Camera or WorldSpace render mode. Set to null is using ScreenSpace Overlay. |
|
inlinestatic |
Function returning the index of the character whose origin is closest to the cursor.
textComponent | A reference to the text object. |
position | Position to check for intersection. |
camera | The scene camera which may be assigned to a Canvas using ScreenSpace Camera or WorldSpace render mode. Set to null is using ScreenSpace Overlay. |
cursor | The position of the cursor insertion position relative to the position. |
Function returning the index of the character whose origin is closest to the cursor.
textComponent | A reference to the text object. |
position | Position to check for intersection. |
camera | The scene camera which may be assigned to a Canvas using ScreenSpace Camera or WorldSpace render mode. Set to null is using ScreenSpace Overlay. |
cursor | The position of the cursor insertion position relative to the position. |
|
inlinestatic |
Function which returns a simple hashcode from a string.
|
inlinestatic |
Function which returns a simple hashcode from a string converted to lowercase.
|
inlinestatic |
Function to convert Hex to Int
hex |
|
inlinestatic |
Function used to determine if the position intersects with the RectTransform.
rectTransform | A reference to the RectTranform of the text object. |
position | Position to check for intersection. |
camera | The scene camera which may be assigned to a Canvas using ScreenSpace Camera or WorldSpace render mode. Set to null is using ScreenSpace Overlay. |
|
inlinestatic |
Method to convert ScreenPoint to WorldPoint aligned with Rectangle
transform | |
screenPoint | |
cam | |
worldPoint |
|
inlinestatic |
Function to convert a properly formatted string which contains an hex value to its decimal value.
s |
|
inlinestatic |
Get lowercase version of this ASCII character.
|
inlinestatic |
Get uppercase version of this ASCII character.