Contents
How do you save a ScriptableObject in Unity?
Unity will save it when you select File > Save Project. If you are just using the default inspector to edit your object then Unity will automatically mark it dirty. If you have written a custom inspector then you should use SerializedObject and SerializedProperty to modify it.
Do scriptable objects save?
In a deployed build, however, you can’t use ScriptableObjects to save data, but you can use the saved data from the ScriptableObject Assets that you set up during development.
When should I use ScriptableObjects?
ScriptableObject, according to Unity, is an inheritable class that allows you to store large quantities of shared data, independent from script instances. There are a number of reasons to use ScriptableObject in Unity. They can increase your workflow, reduce memory usage and even decouple your code architecture.
Are scriptable objects static?
If you think about the class versus the scriptable object, the scriptable object is actually an instance. So you can reference the object in the inspector and have a static property to gain access.
Why is my scriptableobject not getting saved?
[SOLVED] ScriptableObject is NOT getting saved! When I click the save button, the editor saves everything (the mouse icon changes) but as soon as I navigate away from my scriptable object, it’s fields are reset to default values! What gives? guneyozsan likes this.
Can you save game state in scriptable objects?
You can’t use ScriptableObjects to do that – they’re not designed for saving data at runtime (unless you want to run your game in the editor only). That last link you sent has some advice on saving game state which is worth following. renman3000 likes this.
How to save scriptable objects [ solved ] in Unity?
1) ScriptableObjectUtility, This makes it easy to create, name and place unique new ScriptableObject asset files. 2) RaceDataAsset, This allows me to add a component , to a game object from the Menu Window. 3) RaceData This holds the lists I want to be able to get and set. 4) RaceMng This is the first MonoDevelop script, in the chain.