Author Topic: Unity 5 - Recursive Serialization is not supported.  (Read 9035 times)

KChandra

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Unity 5 - Recursive Serialization is not supported.
« 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)


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity 5 - Recursive Serialization is not supported.
« Reply #1 on: December 09, 2015, 01:38:59 PM »
What's a static constructor? What's the full stack trace?