Deadcows/MyBox

Using [ConditonalField] causes Editor Button to be drawn twice

SwingWren opened this issue · 2 comments

I'm having an issue that a button gets drawn twice after adding the Conditional field attribute.
image
image
Code in my custom property drawer:
image

Should I do something different in my code?

Weird! Is the button drawn through the property drawer for ITeleportExtraSetupData, or is it CustomDrawer for MB this field is in?
I'll try to reproduce this behaviour and figure out the problem 🤔

The button is drawn through the property drawer ITeleportExtraSetupData. Here is a minimal demo project.
mybox-conditional-drawing.zip