Load is not working on another scene

Discussion and help for Easy Save 3
Post Reply
NnE0
Posts: 2
Joined: Fri Dec 27, 2019 10:58 am

Load is not working on another scene

Post by NnE0 »

I wrote some code to save and load sprites.
I using this code

save:
ES3.Save<Sprite[]>("Sprites", sprites, filePath); //sprite is array of Sprite

load:
sprites = ES3.Load<Sprite[]>("Sprites", filePath);

and this code works fine in the same scene.

But when i restart game mode on unity, then these sprites can't be loaded.
In inspector, The elements of array(sprites) are empty but the length is loaded successfully.
What is the problem?
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Load is not working on another scene

Post by Joel »

Hi there,

It's not possible for me to replicate this from what you've said. Please could you create a new project with the minimal amount of code required to replicate this and private message it to me?

It sounds like there's not a reference to the Sprites available in the scene you're trying to load from, so the loaded references cannot be resolved.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
NnE0
Posts: 2
Joined: Fri Dec 27, 2019 10:58 am

Re: Load is not working on another scene

Post by NnE0 »

Joel wrote:Hi there,

It's not possible for me to replicate this from what you've said. Please could you create a new project with the minimal amount of code required to replicate this and private message it to me?

It sounds like there's not a reference to the Sprites available in the scene you're trying to load from, so the loaded references cannot be resolved.

All the best,
Joel
I sent you pm with google drive link because example project file size is bigger than allowed size(256kiB).
If you find something wrong, reply again please.
Thank you.
Post Reply