jacobdufault / fullinspector

Full Inspector supercharges Unity's inspector
MIT License
111 stars 27 forks source link

Deserializing UnityEvent is broken #168

Closed marek-mayer closed 7 years ago

marek-mayer commented 7 years ago

Hi, the latest version FullInspector-2.6.4 (08-24-2016 at 0953AM) produces a major issue while deserializing UnityEvent objects. The following error message occurs:

Recursive Serialization is not supported. You can't dereference a PPtr while loading. (Constructors of C# classes may not load objects either. See stacktrace.)

The linked code is the UnityConverter, line 31 (method TrySerialize, line "instance = JsonUtility.FromJson(fsJsonPrinter.CompressedJson(data), objectType);" )

This problem only occurs for plain UnityEvent-objects, not the generic version...

Here are screenshots of the the inspector before and after the the error (after saving the scene everything is ok, after loading the scene the error occurs and the link is broken).

gameobject_linked

gameobject_missing

Cheers, Marek