-
-
Notifications
You must be signed in to change notification settings - Fork 465
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
No Atributes seem to be working after upgrading to Unity 6 LTS #392
Comments
About the question itself: This is possibly related to: #369
After this, if things still not work, check this to debug: SaintsField/issues/51
Off the question: NaughtyAttributes hasn't been updated for years with many pending PR not merged. Since Unity 2022, Unity recommended to use UI Toolkit for editor, and NaughtyAttributes still only support IMGUI. I'd suggest some project as a replacement:
Example in Unity 6000.0.24f1: using SaintsField;
using SaintsField.Playa;
public bool animateCursor;
// this one can co-exist with NaughtyAttributes, but won't work with array/list
[ShowIf(nameof(animateCursor))] public float animationSpeed;
// this one requires you to enable SaintsEditor first, does not compatible with NaughtyAttributes
[PlayaShowIf(nameof(animateCursor))] public Texture2D[] cursorAnimation; Unity_63tu2oPw0K.mp4 |
@TylerTemp the SaintsField seems to be a more direct replacement. |
The general idea is, all pure |
Hi, I have this very simple ShowIf where I have a bool and I want to show/hide a vector and a float based on that bool.
I have tried in a ScriptableOject and in a normal Script but in either case, nothing happened. The properties are always visible regardless if the bool is true or false.
I noticed that the [ReadOnly] and [ShowAssetPreview] were not doing anything either so it seems to be a general problem after Unity 6 Upgrade (or a me general problem)
Can you help?
Thanks.
The text was updated successfully, but these errors were encountered: