Unity3d How to connect the SQLite database

Source: Internet
Author: User
Tags sqlite sqlite database

Environment Introduction:

Windows7,unity3d,sqlite Expert Personal 3

Development language:

Javascript

Required DLL File:

Mono.Data.Sqlite.dll and Sqlite3.dll,dll file locations, screenshots:

Be sure to be in this directory, please keep it consistent.

If you need to release the compiled program successfully, you need to change some places, see the screenshot below:

To change the place has been marked with red, notice this to change. NET2.0, so that can be released. System defaults are not. NET2.0, this should be noted!!!

Let's take a look at the code below to see how to create the code for the database, which you don't have to hang onto any object, you just use it as a tool. As shown below:

/*  Javascript class for accessing SQLite objects.  
      
     To use it, your need to make sure your COPY Mono.Data.SQLiteClient.dll from wherever it lives in your Unity directory  
      
     Your project ' s Assets folder  
      
     originally created by Dklompmaker in 2009  
      
     http://forum.unity3d.com/threads ... sier -database-stuff  
      
     Modified by Alan Chatham           *  
      
//#pragma strict/  
      
*

Related Article

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.