Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SwingWren opened this issue Nov 1, 2023 · 2 comments
Open

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

SwingWren opened this issue Nov 1, 2023 · 2 comments

Comments

@SwingWren
Copy link

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
Copy link
Owner

Deadcows commented Nov 3, 2023

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants