You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Copy-paste doesnt work if subclass selector used in Serializable class #101
Copy and Paste properties doesn't work if you put SerializeReference objects inside regular SerializeField objects.
Per example:
Then when you try to copy TestData in inspector you only get Copy option that can't copy anything related to SerializeReference:
Moreover if in this setup you try to copy just filter:
Then when you try to paste that filter to analogous testData2 you get an exception
Similar problem with SubclassSelector collections. Is this intended or it's a bug? And if it's not bug then can you please add support for such type of Copy-Paste
This is occurring because of JsonUtility.FromJsonOverwrite, if the value that is being assigned to is currently null it will throw that error. This project currently has no handling for when trying to paste into a null target.
Activity
[-][BUG][/-][+][BUG] Copy-paste doesnt work if subclass selector used in Serializable class[/+]Logyrac commentedon Jul 12, 2026
This is occurring because of
JsonUtility.FromJsonOverwrite, if the value that is being assigned to is currently null it will throw that error. This project currently has no handling for when trying to paste into a null target.Logyrac commentedon Jul 13, 2026
I have created a PR for this issue (As well as other type-safety checks when pasting) #103, we'll see where that goes when reviewed.