//放置一个Object在屏幕的右下角:
transform.ScreenPlacement(ScreenPosition.LowerRight);
//放置一个Object到屏幕的右下角,且距离屏幕右侧60像素,距离底部20像素:
transform.ScreenPlacement(ScreenPosition.LowerRight, new Vector2(60,20));
原文来自:http://pixelplacement.com/2011/05/13/simplifying-screen-positioning-in-unity/
本文介绍如何在Unity中使用transform.ScreenPlacement方法快速定位物体于屏幕的不同位置,并提供了实例演示,包括设置物体距离屏幕边缘的像素数。
2796

被折叠的 条评论
为什么被折叠?



