Method FindNearestCharacterOnLine
FindNearestCharacterOnLine(TMP_Text, Vector3, int, Camera, bool)
Function returning the nearest character to position on a given line.
Declaration
public static int FindNearestCharacterOnLine(TMP_Text text, Vector3 position, int line, Camera camera, bool visibleOnly)
Parameters
| Type | Name | Description |
|---|---|---|
| TMP_Text | text | |
| Vector3 | position | |
| int | line | |
| Camera | camera | |
| bool | visibleOnly |
Returns
| Type | Description |
|---|---|
| int |