Save Scriptable Object
Posted: Sat Mar 21, 2020 5:22 pm
Hello, I'm trying to find a tutorial specifically targeted towards Scriptable Objects, but can't seem to find any.
I have an inventory system that uses a list to store items into it.
The items are Scriptable Objects too. So what I had in mind was:
1) Get the list of items and references, save them normally where everything else is saved to by default (at the persistent data path).
2) Empty the list of the Scriptable Object inventory on application quit.
3) On load, get the inventory system SO and repopulate it with the list of items that were saved.
The question is: Is this the way to do it? Or is there another way ES3 does the saving of Scriptable Objects?
I'm also new to this so please let me know if there's anything that I should look out/be aware of.
Thank you!
I have an inventory system that uses a list to store items into it.
The items are Scriptable Objects too. So what I had in mind was:
1) Get the list of items and references, save them normally where everything else is saved to by default (at the persistent data path).
2) Empty the list of the Scriptable Object inventory on application quit.
3) On load, get the inventory system SO and repopulate it with the list of items that were saved.
The question is: Is this the way to do it? Or is there another way ES3 does the saving of Scriptable Objects?
I'm also new to this so please let me know if there's anything that I should look out/be aware of.
Thank you!