- Home /
Question by
xxxmrfunxxx · Jul 15, 2013 at 04:37 AM ·
variableinspector
How to expose variables in c# according to selected booleans
Can I make a variable that, if it is ticked, exposes more variables in the inspector?
For Example: if I make a script called "Vehicles" and has three checkboxes
[]car
[]plane
[]boat
if I check one of these boxes, it reveals more attributes:
[x]car
Color red
doors 4
type minivan
sucks? yes
[]plane
[]boat
Is that even possible?
If so, how?
Thanks in Advance. :)
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Showing a textarea field for a string variable in inspector? 4 Answers
I cant import anything from the asset store! 0 Answers
Removing the Texture BUT keeping the outline of an Object once it is behind an obstacle. 0 Answers
boolean not showing in inspector 1 Answer