Version: 2021.2
public Vector2 GUIToScreenPoint (Vector2 guiPoint);

参数

guiPoint A point in GUI space to convert to screen space.

返回

Vector2 guiPoint in screen space relative to the cached camera viewport.

描述

Converts a point from GUI position to screen space relative to the cached camera viewport.

See also GUIUtility.ScreenToGUIPoint, GUIUtility.GUIToScreenPoint.