Deadcows / MyBox

MyBox is a set of attributes, tools and extensions for Unity
http://deadcow.ru
MIT License
1.91k stars 241 forks source link

Using [ConditonalField] causes Editor Button to be drawn twice #242

Open SwingWren opened 10 months ago

SwingWren commented 10 months ago

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?

Deadcows commented 10 months ago

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 🤔

SwingWren commented 10 months ago

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