Sprites dont load after quit application
Sprites dont load after quit application
Hi, I want to save a gameobject wich contains childs that are sprites, that are modified at runtime, I can save the gameobject and load it perfectly until I dont close the application, because when I start the application again and try to load the gameobject, the sprites just dissapear. How can I fix this?
- Attachments
-
- Screenshot_7.png (57.09 KiB) Viewed 473 times
Re: Sprites dont load after quit application
Hi there,
If your Sprites are modified at runtime then you will need to save them separately to ensure they are saved by value. Otherwise they will only be saved by reference, and a reference to your modified sprite will not exist when you reload.
All the best,
Joel
If your Sprites are modified at runtime then you will need to save them separately to ensure they are saved by value. Otherwise they will only be saved by reference, and a reference to your modified sprite will not exist when you reload.
All the best,
Joel