Sprites dont load after quit application

Discussion and help for Easy Save 3
Post Reply
wantan
Posts: 1
Joined: Mon Dec 27, 2021 1:04 pm

Sprites dont load after quit application

Post by wantan »

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
Screenshot_7.png (57.09 KiB) Viewed 473 times
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Sprites dont load after quit application

Post by Joel »

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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply