Quantcast
Channel: Answers for "How to check for null"
Browsing latest articles
Browse All 4 View Live

Answer by nirharpaz

> if(x!=null && *whatever the condition you want*) >{ do something to x; }

View Article



Answer by DiegoSLTS

GameObject text3 = GameObject.Find("TextLevel3"); if (text3 != null) { text = text3.GetComponent().enabled = false; }

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images