ドキュメント

Unity Engine

Unity Engine

GetCursorStringIndex(Rect, GUIContent, Vector2)

Get the cursor position (indexing into contents.text) when the user clicked at cursorPixelPosition.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.IMGUIModule
public int GetCursorStringIndex(Rect position, GUIContent content, Vector2 cursorPixelPosition)

Parameters

position


content


cursorPixelPosition

Returns

Type

Description

int

Remarks

This does not respect any images inside content.