Unity3d read Sqlite3 database on various platforms

Source: Internet
Author: User
Tags sqlite

The biggest feeling in writing this article is that no matter what the technical point, after their own certification is true, do not easily believe what others say. Actually is not that, must believe oneself, if is the Unity3d development, may go to the official forum to look for the question more.


This is the first time I use SQLite in Unity3d as a configuration table file, of course, SQLite has excellent read and write performance. If the project is stable, I will keep using it.


Android Platform:

1, download libsqlite3.so to assets-plugins-android below

2, find Mono.Data.Sqlite.dll in the Unity directory, so you can read the database file on Android real machine


Pc-mac-ios Platform:

1, find the mono.data.sqlite.dll,sqlite3.dll two DLL files in the Unity directory


Main:Mono.Data.Sqlite.dll,Sqlite3.dll must match the Mono version you are currently developing, the principle of using Sqlite on Android is:

Use Mono.Data.Sqlite.dll as a link, use Sqlite functionality in C #, and then libsqlite3.so the ndk file for sqlite3 C compilation,

Loading can be read in Android phone.


Have a problem can QQ me: 171072427





Unity3d read Sqlite3 database on each platform

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.