RectTransformUtility.WorldToScreenPoint

声明

public static Vector2 WorldToScreenPoint(Camera cam, Vector3 worldPoint);

参数

cam 与屏幕空间位置关联的相机。(可选)
worldPoint 世界空间中的点。

返回

Vector2 返回屏幕点。

描述

将世界空间中的位置转换为屏幕空间点。


Did you find this page useful? Please give it a rating: