WorldToGUIPoint(Vector3)
Converts a world space point to a 2D GUI position.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public Vector2 WorldToGUIPoint(Vector3 worldPoint)
Parameters
A point in world space.
Returns
Type | Description |
|---|---|
| Vector2 | A point in GUI space. |
Remarks
Uses the cached camera matrices and viewport to calculate the projection.
See also HandleUtility.WorldToGUIPoint.