Saving a list that contains a scriptable object breaks the reference of the actual object
Posted: Wed Apr 07, 2021 4:55 pm
What I am trying to achieve is pretty complicated. I am trying to save a list that contains scriptable objects. The scriptable objects are created at runtime. Each time I am trying to load the new list in start/awake the load loses the reference to the object in the assets folder.
To show in more detail this is what happens in runtime.
I create a scriptable object in assets
And I add it to the list
When I quit the game and hit play again and call the load function I lose the reference to the object in the assets.
Any help with this problem. I really can't figure out how I can fix this.
To show in more detail this is what happens in runtime.
I create a scriptable object in assets
And I add it to the list
When I quit the game and hit play again and call the load function I lose the reference to the object in the assets.
Any help with this problem. I really can't figure out how I can fix this.