Data Model
Last updated
Last updated
Support us as a and get instant access to all our assets, exclusive tools and assets, escalated support and issue tracking and our gratitude. These articles are made possible by our ... become a sponsor today!
It is intended that you use this to create your core save files as Scriptable Objects. This makes it trivial to query the interface for records of this file type and to load data into a usable point in memory that can easily be referenced by Unity components.
You would typically start by defining your underlying data type e.g. a serializable object that represents the data you wish to save
You would then create your DataModel
You do not need to write any code in the body of the DataModel, the base class will implement everything you need for you.
Once complete you can use your new ScriptableObject to represent the currently loaded copy of this data type and you can use its member functions to list the available files of this type as seen on and to read and write given files.