unity3d
绝望的海马
这个作者很懒,什么都没留下…
展开
-
Unity3d中按钮点击后无效果
在创建新的UI组件后,会同时生成一个EventSystem组件,当时觉得没用就手贱删了,结果导致无法触发按钮点击效果,很是尴尬。原创 2021-02-09 09:38:38 · 1030 阅读 · 0 评论 -
“Object reference not set to an instance of an object”报错
“Object reference not set to an instance of an object”报错原因对象的实例化Instantiate(X.Instance.gameObject)在引用外部脚本过程中,无法实现并报错“Object reference not set to an instance of an object”。由于被引用脚本中,自身程序实例化public static X Instance后 ,未使用private void Awake() {instance = this原创 2021-02-09 09:30:49 · 17637 阅读 · 0 评论