Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: KChandra on December 07, 2015, 01:22:34 PM

Title: Unity 5 - Recursive Serialization is not supported.
Post by: KChandra on December 07, 2015, 01:22:34 PM
Hi!

We've recently updated to Unity5.2.3 and now get this error when building. It looks like Unity5 does not like the localization file to be loaded in a static constructor. Will this be fixed? Also is it harmless? Thanks!

Recursive Serialization is not supported. You can't dereference a PPtr while loading. (Constructors of C# classes may not load objects either eg. EditorGUIUtility.TextContent should be moved to OnEnable. See stacktrace.)
UnityEngine.Resources:Load(String)
Localization:LoadDictionary(String) (at Assets/Libs/Ngui/Scripts/Internal/Localization.cs:142)
Localization:Get(String) (at Assets/Libs/Ngui/Scripts/Internal/Localization.cs:474)

Title: Re: Unity 5 - Recursive Serialization is not supported.
Post by: ArenMook on December 09, 2015, 01:38:59 PM
What's a static constructor? What's the full stack trace?