MyBox icon indicating copy to clipboard operation
MyBox copied to clipboard

Using [ConditonalField] causes Editor Button to be drawn twice

Open SwingWren opened this issue 1 year ago • 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?

SwingWren avatar Nov 01 '23 11:11 SwingWren

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 🤔

Deadcows avatar Nov 03 '23 10:11 Deadcows

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

SwingWren avatar Nov 03 '23 12:11 SwingWren