Tag: editor scripting
NullHunter: An Editor script that flags potential Null References
When giving Spamocalypse a test recently, I ran into an issue where I hadn’t initialised a variable, resulting in my console being filled with NullReferenceExceptions. This annoyed me enough that I went and wrote an Editor extension that looks for null public variables in a particular MonoBehaviour. It’s based around reflection, which is the ability…