Property Drawer Array Overlapping.

So I made a custom property drawer for a serialized class. The issue I am having is when I override the GetPropertyHeight() it works fine, but say its in an array the proceeding elements overlap and get all funky.

Is there something I am missing? To me it seems that changing the GetPropertyHeight overrides all GetPropertyHeight() of that type and not just the current one in question. Is there an other way to go about it?

Essentially I want to hide/show certain data when a boolean is toggled.

Thanks!

Same issue and no fix to be found googling

I doubt there ever will be

Hey man! I actually found the solution yesterday! Maybe if you give more details on your exact issue I can help you out.

Hey dude,

Screenshot1
Screenshot2

So in SH1, the top dropdown menu in order for it to be selectable I need to click lower than were the GUI is actually at. Same with SH2. In fact, if you look at SH2, there is a boolean underneath it, and its not selectable at all because the second dropdown is interfering with the boolean selectable draw area.

Hey man, sorry for the late response. I haven’t worked with enums in a custom property drawer, so not sure what’s going on without looking at your code

I got it working thanks though! For anyone else, see here.

1 Like