Version: 2022.3
public Vector2 WorldToGUIPoint (Vector3 worldPoint);

参数

worldPoint 世界空间中的点。

返回

Vector2 A point in GUI space.

描述

Converts a world space point to a 2D GUI position.

Uses the cached camera matrices and viewport to calculate the projection.

See also HandleUtility.WorldToGUIPoint.