FAQ

Scriptable List

Can I use a Scriptable List to store data? Meaning setting data in the editor, then play the game and read this data.

No. Scriptable lists should only be used at runtime. They will clear when exiting play mode, so it's not a solution to store data. They are very useful and they can contain anything. For example, you can have a script that stores positions (in a Scriptable list of Vector3) of a moving object, then another object would spawn coins on those positions.

If you want to store data, just make a ScriptableObject that has a reference to a List<T>.

Last updated