Unity 配置 SQLite

原Github仓库链接:
https://github.com/robertohuertasm/SQLite4Unity3d?tab=readme-ov-file

All you have to do to start using it in your project:

  1. 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.
  2. Copy the SQLite.cs file into your scripts folder.
  3. Don’t forget to copy your SQLite database file in your Assets/StreamingAssets folder if you’re shipping one.
  4. You’re done! Now you can get access to your database using sqlite-net. ;P

配置教程

  1. 下载压缩包链接
    解压后复制所有文件到Assets/Plugins文件夹

  2. 复制SQLite4Unity3d/SQLite.cs到你项目里存放代码的文件夹(一般是Scripts文件夹)里

  3. 复制/新建数据库文件到项目的Assets/StreamingAssets

posted @ 2024-08-12 23:07  星痕sky  阅读(158)  评论(0)    收藏  举报