How to hide task's variables?

YnS

New member
Is there a way to hide variables based on other's values? For example, based on a boolean value, the editor will show others variables
 
Yes, you can create a custom object drawer for this. Take a look at the documentation for info on object drawers. If you have the Movement Pack you can follow similar methods as the Can See Object task that hides fields based on the detection mode.
 
It would be really nice to create an attribute drawer to do this (I already have one for Unity's property drawers). The only thing stopping me from making a similar attribute/drawer for BD is that I can't use `EditorGUILayout.PropertyField` to draw the property, as we're not working with UnityObjects here.
 
Top