CameraTransformWorldToPanel(IPanel, Vector3, Camera)
Transforms a world absolute position to its equivalent local coordinate on given panel, using provided camera for internal WorldToScreen transformation.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public static Vector2 CameraTransformWorldToPanel(IPanel panel, Vector3 worldPosition, Camera camera)
Parameters
Returns
Type | Description |
|---|---|
| Vector2 | A position in panel coordinates that corresponds to the provided world position. |