I’m playing around with serializing the gamestate at the moment, so I can implement saving and loading games.
Now I’ve got a generic databundle utility that I tend to use for these types of things that uses XML, but I was wondering if I couldn’t just leverage assemblies already being used by Unity.
For instance:
Mono.Data.SqliteClient
But the question is, for what is unity actually using this assembly? Is it being used to access level data and such, and in that case can you assume that sqlite3 has already been installed on the target platform.
If I do the following for instance:
string databasePath = "URI=file:" + Application.dataPath + "/GameState.sqlite";
Debug.Log(databasePath);
SqliteConnection connection = new SqliteConnection(databasePath);
Unity bleats at me that the Sqlite3 is not installed.
Has anyone played with this? Am just barking up the wrong tree? Is it legal for me to use the library in this way? Should I just stick to plain old XML?