-
-
Notifications
You must be signed in to change notification settings - Fork 468
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
[Request] Support Enum Flags #217
Comments
I know it can be done with functions, but there are so many fields in the enum that it's just not practical. Please support enum flags like you support bool |
Duplicates #167 |
@dbrizov Does the new update support enum flags, or just normal enum? |
Oh, only enum. I am reopening it :D |
@dbrizov Thanks haha. It would be great if enum flags were supported as well. Please see the code snippet I posted, the case enum. It handles enum flags as well so I can select multiple items on a dropdown. |
…aughtyAttributes into IF-ACT-#217-support-enum-flags
…aughtyAttributes into IF-ACT-#217-support-enum-flags
Done in 7a2d8e1 |
For the ShowIf/HideIf attribute, please allow Enum Flags as input. For example:
Please see https://forum.unity.com/threads/draw-a-field-only-if-a-condition-is-met.448855/ for reference
Here's the code snippet that does the trick with this other library:
Please note that the code above for enum works if it's a normal enum as well. So if it's a flag enum or normal enum it will work.
The text was updated successfully, but these errors were encountered: