- Home /
Only show vars in inspector if check box is checked.
I need to make it so if I check a boolean in the inspector it shows other vars in the inspector. And if its not then dont show them.
Also posted to forums, here: http://forum.unity3d.com/threads/82474-Only-show-vars-in-Inspector-if-Boolean-is-Checked
Answer by AngryOldMan · Mar 19, 2011 at 11:04 PM
This isn't really a question more a statement. Try giving it a go then posting the problems your having with it.
Answer by efge · Mar 19, 2011 at 11:12 PM
Take a look at this function OnInspectorUpdate.
Hope this is a starting point ...
Your answer
Follow this Question
Related Questions
Can't get var from other script. 1 Answer
Cant set default var value to script? 1 Answer
Buttons Still Showing but opacity is super small (although they don't do anything) 0 Answers
What is the efficient way of showing variables depend on enum in custom inspector? 2 Answers
Loss of GO selection 2 Answers