Search Unity

Error: Recursive Serialization is not supported. You can't dereference a PPtr while loading.

Discussion in 'Getting Started' started by Yakup93, Jul 12, 2016.

  1. Yakup93

    Yakup93

    Joined:
    Jul 12, 2016
    Posts:
    2
    Hi,
    I am loading a file through Resources.Load and i am getting this error:
    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)
    Rocket:.ctor()
    UnityEngine.Resources:Load(String)
    SpawnFloor:Start() (at Assets/Resources/Scripts/SpawnFloor.cs:11)


    Edit: nevermind, got it solved. Rocket was also loading Resource. But did this before start.
     
    Last edited: Jul 12, 2016
    iwillbenice likes this.