Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

InputField.GetCharacterIndexFromPosition

Switch to Manual
protected function GetCharacterIndexFromPosition(pos: Vector2): int;

Parameters

posMouse position.

Returns

int Character index with in value.

Description

The character that is under the mouse.