Hi there - Not sure what I'm doing wrong - my GameObject loads and saves just fine, except I have a List of ScriptableObjects created at runtime, and when I save and later load, the size of the List is accurate, but each of the elements are null:
(At the save point)
(At the load point)
Many thanks for any help you can provide!
Goose
Scriptable Objects created at runtime
Re: Scriptable Objects created at runtime
Hi there,
This is because the ScriptableObjects will be saved by reference, not by value, meaning a reference to them will not exist. You need to save them separate with a separate ES3.Save and Load call to ensure they are saved by value.
All the best,
Joel
This is because the ScriptableObjects will be saved by reference, not by value, meaning a reference to them will not exist. You need to save them separate with a separate ES3.Save and Load call to ensure they are saved by value.
All the best,
Joel