I'm trying to manage a lot of data with unity, but
I can't find any official references to handle the database.
How does the game development culture manage large amounts of data?
Do you rely on text-based files such as csv?
I'm confused because I used MySQL and SQLite as a matter of course for web and native applications.
unity3d game-development
By default, Unity does not have a system to manage data.
PlayerPref exists as a similarity.
http://docs.unity3d.com/ja/current/ScriptReference/PlayerPrefs.html
I think it depends on the technician when dealing with huge data, but
I think Json and CSV are common.
X Xml is not very good because of its speed.
Other than that, per ScriptableObject.
Json seems to have been supported since Unity 5.3.
(I have not tried it, so I will refrain from doing anything more.)
If it's an earlier version, I think MiniJson will solve the problem.
In my case, I encrypt and save Json data.
For some simple flag storage, I use PlayerPref.
Another way to do this is to leave it to the server side (MySQL).
Although it is not standard, I am using SQLite for Unity by referring to the site below. It also works with Unity Editor, iOS and Mac OS.
Reference
https://github.com/Busta117/SQLiteUnityKit
http://bribser.co.jp/blog/sqliteunitykit/
© 2024 OneMinuteCode. All rights reserved.