下载的资源会报错
[Unity 3D] error CS0619: ‘GUIText‘ is obsolete: ‘GUIText has been removed. Use UI.Text instead.‘
只需要引入
using UnityEngine.UI;
改为Text
[Unity 3D] error CS0619: ‘GUIText‘ is obsolete: ‘GUIText has been removed. Use UI.Text instead.‘
只需要引入
using UnityEngine.UI;
改为Text
2022-08-31
讲师回答 / keyboardmeow
你打印下Camera.main的值看是不是null,如果是的话,应该是你的摄像机对象的Tag值没有设置成MainCamera,所以没找到摄像机
2018-10-30