unity3d控制物体不出屏幕
transform.position=newVector3(Mathf.Clamp(this.width,Screen.width,0),0,0);transform.p...
transform.position = new Vector3(Mathf.Clamp(this.width,Screen.width,0),0,0);transform.position = new Vector3(0,Mathf.Clamp(this.height,Screen.height,0),0);用来控制物体不出屏幕,把脚本赋给物体c#写的,老报错,为啥呀
展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询