public Camera foregroundCamera;//主相机
Vector3 headjoint;
headjoint=foregroundCamera.WorldToScreenPoint(headjoint);
headjoint = foregroundCamera.ScreenToWorldPoint(headjoint);
世界坐标转成屏幕坐标
最新推荐文章于 2024-04-18 14:05:20 发布
public Camera foregroundCamera;//主相机
Vector3 headjoint;
headjoint=foregroundCamera.WorldToScreenPoint(headjoint);
headjoint = foregroundCamera.ScreenToWorldPoint(headjoint);