Hiding Empty Drawers #34
-
Hi! I was wondering if there was a setting to enable somewhere to hide drawers that have had all of their variables hidden by CustomInspectorSettings. E.g. the Animator component in the pic below is empty, so there's no real reason for the drawer to continue to exist: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
At the moment, unfortunately there isn't. The best you can do is, register to RuntimeInspector's ComponentFilter event to hide the component altogether. |
Beta Was this translation helpful? Give feedback.
-
For anyone that wants to hack something halfway usable together for this, here's what I did. It seems to work, as all of the Components listed in the Inspector seem to be ObjectFields. So in ObjectFields.cs, I created the following function:
I then added a call to this new |
Beta Was this translation helpful? Give feedback.
At the moment, unfortunately there isn't. The best you can do is, register to RuntimeInspector's ComponentFilter event to hide the component altogether.