Registry sometimes fails to get the right instance on Serializable classes
Issue #82
wontfix
When using the command attribute within a class with [Serializable] and registering it, sometimes it manages to grab a new instance instead of the actual one.
Comments (3)
-
repo owner -
repo owner Unity does indeed treat
[Serializable]
classes as structsBecause of this, I won’t be able to fix it on my end. The new
[SerializeReference]
in 2019.3 should work correctly howeverhttps://blogs.unity3d.com/2014/06/24/serialization-in-unity/
-
repo owner - changed status to wontfix
- Log in to comment
It is possible that
[Serializable]
causes unity to treat it as a struct, and value copy it instead of ref copying itWill investigate it and see if it is possible to fix