早教吧 育儿知识 作业答案 考试题库 百科 知识分享

Unity出现BUG了,我用的是DFGUI做的MissingReferenceException:Theobjectoftype'dfTweenVector3'hasbeendestroyedbutyouarestilltryingtoaccessit.Yourscriptshouldeithercheckifitisnulloryoushouldnotdestroytheobject.dfTween

题目详情
Unity出现BUG了,我用的是DFGUI做的
MissingReferenceException:The object of type 'dfTweenVector3' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
dfTweenComponent`1[UnityEngine.Vector3].Play () (at Assets/Daikon Forge/Tweening/Scripts/dfTweenComponent.cs:127)
num.MoveToPosition (Int32 targetX,Int32 targetY,Boolean isNeedUpdateComponentArray) (at Assets/Scripts/num.cs:98)
GameController.MoveNum () (at Assets/GameController.cs:189)
GameController.Update () (at Assets/GameController.cs:56)
就提示这些了,
▼优质解答
答案和解析
dfTweenVector3对象被销毁了
而你其他的地方还有对其的引用