Saving ScriptableObject Data

Hi, Everyone!
In my project I’m using ScriptableObject to hold library of cars available in a game.

Every car has a bool ‘owned’ (which tells if player already bought this car) and an array of ints which represents upgrades player bought for this car. Now I’ve noticed that changes made to this values in editor are permanent, meaning that after restarting game in editor (and even editor) does not affect them.

This is a nice feature of scriptableObject but Is this behaviour also true for published project? Or do I still have to save this scriptableObject’s data somewhere in PlayerPrefs, or similar place?

Unfortunately no, ScriptableObjects are only persistent in the Editor its more of a read-only type deal. You could set up your Asset as a blue print and save it in a file or database somewhere with a small script.