Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Databases in Unity

Discussion in 'Scripting' started by Yishai_Q, Nov 17, 2020.

Thread Status:
Not open for further replies.
  1. Yishai_Q

    Yishai_Q

    Joined:
    Nov 17, 2020
    Posts:
    30
    Hi,

    I would like to use a local Database in my Unity project, what would be the best way to do it?

    In particular I would like to use SQLite, is there some add-on that works good on all platforms? (Android, iOS,Mac,PC)

    Is there an efficient way to simply use a text file as a database, if the database is not big, so I will not have problems working multiplatform?

    Thanks,
     
    Last edited: Nov 18, 2020
  2. slaga

    slaga

    Joined:
    Dec 3, 2018
    Posts:
    142
  3. Yishai_Q

    Yishai_Q

    Joined:
    Nov 17, 2020
    Posts:
    30
    Thanks fot your reply, I ment a local database like Sqlite.
     
  4. Unity-Harkness

    Unity-Harkness

    Unity Technologies

    Joined:
    May 8, 2019
    Posts:
    5
  5. Yishai_Q

    Yishai_Q

    Joined:
    Nov 17, 2020
    Posts:
    30
    Is there an efficient way to simply use a text file as a database, if the database is not big, so I will not have problems working multiplatform?
     
  6. Unity-Harkness

    Unity-Harkness

    Unity Technologies

    Joined:
    May 8, 2019
    Posts:
    5
    You should look into JSON, XML, or even Google Flatbuffers and make the choice based on your needs
     
  7. Yishai_Q

    Yishai_Q

    Joined:
    Nov 17, 2020
    Posts:
    30
    thank you
     
Thread Status:
Not open for further replies.