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. :slight_smile:

You can use editor scripting to do this.