(Question summary: why Scriptable object data saves between playmode sessions but doesn’t save is i close unity project and open it again, and what is a good way to make data remain permanently?)
Hello! im making a farming game and using scriptable objects to handle all the data. And today i notised an issue.
Data is stored properly between play mode sessions, but if i close unity and open it again, all data returns to default values, assigned in inspector. Here is an example:
- i started playmode: (building are on their default place)
- i moved a building in playmode: (and than exit playmode)
- i entered playmode again: (building remains where i set it)
- but than i closed unity project, opened it again, entered playmode, and this happened:
(red building returned to default position)
I built my project and found out that there is the same issue: if i close game all the data returns to default values.
I use Scriptable object that stores vector to value to save position of the building, here it is:



