言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

GUIStyle.GetCursorStringIndex

public function GetCursorStringIndex(position: Rect, content: GUIContent, cursorPixelPosition: Vector2): int;

Description

Get the cursor position (indexing into contents.text) when the user clicked at cursorPixelPosition.

This does not respect any images inside content.