Quantcast
Channel: Answers by "M-G-Production"
Viewing all articles
Browse latest Browse all 52

Answer by M.G. Production

$
0
0
Hi looMeenin! I guess you should... Each time you are asking to find an object, you are actually searching it in the scene. So when you try to find an "inexistent" object, it will remains null... This is really easy and only require time from you. And it is always good to prevent these crashes. if (myObject != null) {//Do what you wanna do!;} else { GameObject.Find("myObject"); //Redo what you wanna do!; } Math

Viewing all articles
Browse latest Browse all 52

Trending Articles



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