Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

GUIStyle.GetCursorPixelPosition

GetCursorPixelPosition(position: Rect, content: GUIContent, cursorStringIndex: int): Vector2;
Vector2 GetCursorPixelPosition(Rect position, GUIContent content, int cursorStringIndex);
def GetCursorPixelPosition(position as Rect, content as GUIContent, cursorStringIndex as int) as Vector2

Description

Get the pixel position of a given string index.