📜  根据屏幕分辨率统一保持精灵在固定变换 - C#代码示例

📅  最后修改于: 2022-03-11 14:48:53.546000             🧑  作者: Mango

代码示例1
Vector3 pos = Vector3(15, Screen.height - 15, 10);
transform.position = Camera.main.ScreenToWorldPoint(pos);