摘要: ##世界坐标(World Space) 场景中添加的对象,它们是以世界坐标显示在场景中,可以通过代码transform.position获得该对象的世界坐标,那么我们在检视面板(Inspector)中看到的Position的值在对象没有父物体时,这个值和transform.position得到的结果 阅读全文
posted @ 2021-07-10 16:20 yassine 阅读(297) 评论(0) 推荐(0) 编辑
摘要: ##问题 先看一下简单例子: using UnityEngine; using UnityEngine.UI; public class TestClass : MonoBehaviour { public Button[] Btn = new Button[3]; private void But 阅读全文
posted @ 2021-07-10 13:32 yassine 阅读(192) 评论(0) 推荐(0) 编辑