기술 자료

Unity Engine

Unity Engine

GetCursorStringIndex(Rect, GUIContent, Vector2)

Get the cursor position (indexing into contents.text) when the user clicked at cursorPixelPosition.
읽는 시간 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.