Answer the question
In order to leave comments, you need to log in
Is it possible to store information in a ScriptableObject?
Is it possible to store user settings not in PlayerPrefs, but in a ScriptableObject file stored in resources? Are these files saved after the platform build? If it is possible, then why is it bad/good?
Answer the question
In order to leave comments, you need to log in
You can, but the changes will not be saved in the assembly, only in the editor. If you want to be saved, then you need to serialize the ScriptableObject and write somewhere to disk. When I last looked, changes to resource files only existed during the lifetime of the application. Except for the need for serialization, storing settings in a ScriptableObject is very convenient, especially if you need to look at or correct something in the editor.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question