Recursive serialization error?
Hi!
I'm getting a series of five errors every time I try to load and instantiate an object from resources:
GetBool is not allowed to be called during serialization, call it from Awake or Start instead. Called from MonoBehaviour 'Immigrant' on game object 'Immigrant'.
See "Script Serialization" page in the Unity Manual for further details.
UnityEditor.EditorPrefs:GetBool(String, Boolean)
SyntaxTree.VisualStudio.Unity.Bridge.Configuration.GlobalConfiguration:get_SendConsoleToVisualStudio()
SyntaxTree.VisualStudio.Unity.Bridge.Configuration.ActiveConfiguration:get_SendConsoleToVisualStudio()
SyntaxTree.VisualStudio.Unity.Bridge.VisualStudioIntegration:OnLog(String, String, LogType)
UnityEngine.Resources:Load(String)
UnityException: GetBool is not allowed to be called during serialization, call it from Awake or Start instead. Called from MonoBehaviour 'Immigrant' on game object 'Immigrant'.
See "Script Serialization" page in the Unity Manual for further details.
SyntaxTree.VisualStudio.Unity.Bridge.Configuration.GlobalConfiguration.get_SendConsoleToVisualStudio ()
SyntaxTree.VisualStudio.Unity.Bridge.Configuration.ActiveConfiguration.get_SendConsoleToVisualStudio ()
SyntaxTree.VisualStudio.Unity.Bridge.VisualStudioIntegration.OnLog (System.String message, System.String stacktrace, LogType type)
UnityEngine.Application.CallLogCallback (System.String logString, System.String stackTrace, LogType type, Boolean invokedOnMainThread) (at C:/buildslave/unity/build/artifacts/generated/common/runtime/ApplicationBindings.gen.cs:564)
UnityEngine.Resources:Load(String)
Recursive Serialization is not supported. You can't dereference a PPtr while loading. (Constructors of C# classes may not load objects either. See stacktrace.)
UnityEngine.Resources:Load(String)
GetBool is not allowed to be called during serialization, call it from Awake or Start instead. Called from MonoBehaviour 'Immigrant' on game object 'Immigrant'.
See "Script Serialization" page in the Unity Manual for further details.
UnityEditor.EditorPrefs:GetBool(String, Boolean)
SyntaxTree.VisualStudio.Unity.Bridge.Configuration.GlobalConfiguration:get_SendConsoleToVisualStudio()
SyntaxTree.VisualStudio.Unity.Bridge.Configuration.ActiveConfiguration:get_SendConsoleToVisualStudio()
SyntaxTree.VisualStudio.Unity.Bridge.VisualStudioIntegration:OnLog(String, String, LogType)
UnityEngine.Resources:Load(String)
UnityException: GetBool is not allowed to be called during serialization, call it from Awake or Start instead. Called from MonoBehaviour 'Immigrant' on game object 'Immigrant'.
See "Script Serialization" page in the Unity Manual for further details.
SyntaxTree.VisualStudio.Unity.Bridge.Configuration.GlobalConfiguration.get_SendConsoleToVisualStudio ()
SyntaxTree.VisualStudio.Unity.Bridge.Configuration.ActiveConfiguration.get_SendConsoleToVisualStudio ()
SyntaxTree.VisualStudio.Unity.Bridge.VisualStudioIntegration.OnLog (System.String message, System.String stacktrace, LogType type)
UnityEngine.Application.CallLogCallback (System.String logString, System.String stackTrace, LogType type, Boolean invokedOnMainThread) (at C:/buildslave/unity/build/artifacts/generated/common/runtime/ApplicationBindings.gen.cs:564)
UnityEngine.Resources:Load(String)
When I open the inspector window in the editor to check them out, I get even more (similar) errors:
Recursive Serialization is not supported. You can't dereference a PPtr while loading. (Constructors of C# classes may not load objects either. See stacktrace.)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Any idea what's going on here? I didn't have these errors when I was working on this project from another computer. I thought that it might be a problem with a monobehavior class they shared, but I couldn't trace the error to anything inside the C# file, and other objects with the same superclass as that monobehavior (they are all derived from the same monobehavior class I wrote) don't experience this error when instantiated or opened in the editor. How can I debug this weird error that doesn't seem to come out of any code I wrote myself?
Your answer
Follow this Question
Related Questions
Unity gets hang and nothing work in it, even I have to close it from the task manager 0 Answers
XML Loading works in PC... but not in Android 0 Answers
Cannot read past end of stream, MemoryStream 1 Answer
Unity Serial.ReadLine() issue 1 Answer
Instantiate and object around the perimeter of an area inside of an area. (C#) 1 Answer