unity報(bào)錯(cuò):NullReferenceException: Object reference not set to an instance of an object CreatObject.Start () (at Assets/CreatObject.cs:25)
unity報(bào)錯(cuò):NullReferenceException: Object reference not set to an instance of an object
CreatObject.Start () (at Assets/CreatObject.cs:25)
腳本25行:transLight.GetComponent<Light>().color = Color.green;
2018-07-17
同問(wèn),我只有一個(gè)燈變了顏色,還報(bào)錯(cuò)
2016-12-29
程序格式?jīng)]錯(cuò)
2016-12-29
沒(méi)有獲取到,具體的要看你的project,建議你看下慕課U3D腳本入門(mén)2-4.有興趣玩U3D游戲引擎加我好友一起討論啊,我也是最近才學(xué)習(xí)