-
-
Notifications
You must be signed in to change notification settings - Fork 245
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
ConditionalFieldAttribute does not hide HeaderAttribute [Bug] #5
Comments
Probably not too possible. Tried changing the header's attribute property directly, only to find out that you can't actually do so due to how attributes are tied to the binary files. Saw nothing that could help the header in the UnityEditor API. (Though I might add that I am not too proficient with the UnityEditor API itself) Could prob close this issue unless someone manages to find a way to hide the headers. |
Let's consider this one as "by design". You may try to use SeparatorAttribute instead of the Header and I can add specific behavior for combination of Separator and ConditionalField. I'll close this one when my ConditionalField attribute will work fine with SeparatorAttribure |
this one in my TODO list now. I'll close this issue for now |
Bump ;). Just ran into it |
A note for the Andrew from (hopefully near) future |
Yet another trivial and minor bug where
ConditionalFieldAttribute
does not hideHeaderAttribute
, as shown in both of these screenshots:ShootAngleRotationSpeed
is shown, true)ShootAngleRotationSpeed
is hidden, but the header attribute is not.)Codes used when encountering this:
Though I can see the design idea in not fixing this. (Where there might be more than 1 field below the header, and it would look weird/bad if we hid the header at that situation.)
Maybe a parameter in the attribute that removes the header(if exists) when hidden? Or some checking to see if there is some fields below that doesn't have a header before hiding the header.
The text was updated successfully, but these errors were encountered: