Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

NullReferenceException

$
0
0
"NullReferenceException: Object reference not set to an instance of an object ObjectDetect2.OnDisable () " How do I resolve the error? function OnEnable() { var gameController = GameObject.FindWithTag("EditorOnly"); gameController.SendMessage("OnEnableObjective"); } function OnDisable() { var gameController = GameObject.FindWithTag("EditorOnly"); gameController.SendMessage("OnDisableObjective"); } other script function OnEnableObjective() { objectives++; } function OnDisableObjective() { objectives--; if (objectives == 0) SendMessage("OnObjectives"); }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>