原Github仓库链接:
https://github.com/robertohuertasm/SQLite4Unity3d?tab=readme-ov-file
All you have to do to start using it in your project:
- Download this zip, extract its content and copy the resulting folder to your Assets/Plugins folder. It contains the dlls that Unity3d will need to access sqlite.
- Copy the SQLite.cs file into your scripts folder.
- Don’t forget to copy your SQLite database file in your Assets/StreamingAssets folder if you’re shipping one.
- You’re done! Now you can get access to your database using sqlite-net. ;P
配置教程
-
下载压缩包链接
解压后复制所有文件到Assets/Plugins
文件夹 -
复制
SQLite4Unity3d/SQLite.cs
到你项目里存放代码的文件夹(一般是Scripts
文件夹)里 -
复制/新建数据库文件到项目的
Assets/StreamingAssets
中