Load is not working on another scene
Posted: Fri Dec 27, 2019 11:09 am
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?
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?