文档

Unity Engine

Unity Engine

GetCursorStringIndex(Rect, GUIContent, Vector2)

Get the cursor position (indexing into contents.text) when the user clicked at cursorPixelPosition.
阅读时间1 分钟最后更新于 2 天前

Definition

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.