Quantcast
Channel: Questions in topic: "crash"
Viewing all articles
Browse latest Browse all 2383

Unity crashes on null

$
0
0
My game crashes every time something is null. This is fairly tedious to debug on mobile and it is somewhat annoying to have to put null checks everywhere (and having to remember that C# stupidly does not evaluate null to false). I'd much prefer to have nothing happen if something is null (which in many many cases is the right answer anyway). Is there an option to get this behaviour?

Viewing all articles
Browse latest Browse all 2383

Trending Articles



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