Question by
Krieger9 · Apr 16, 2018 at 11:07 PM ·
nullpublic variable
Compare public GameObject to "None" or "null"
I have a public GameObject on a script that I want available to use as a potential override for the script to use it's own gameObject member.
So I wish to compare if it is == null but this doesn't work as the editor assigns it by default to the object "none" which shows as "null" in visual studio.
How can I get access to this "none" GameObject so I can detect if it is set to a default value or was assigned in the editor?
Comment