Recently, I developed unity project for my adviser's national science council project.
Now, I have to use unity connect to database, and there's a WWW class can post/get variable via querystring.
However, it's not good way to connect to database.
I tired to find another way to implement it. We know Unity can be implement by C#.
So, I think I can try to import .Net dll file. Finally, I find the way and it works very well.
The process was detailed as follows:
1. Copy C:\Program Files\Unity\Editor\Data\Mono\lib\mono\unity_web\System.Data to Unity's Asset folder.
2. using System.Data.SqlClient;
3. Do everything for MSSQL.
Enjoy it.
Allen
Now, I have to use unity connect to database, and there's a WWW class can post/get variable via querystring.
However, it's not good way to connect to database.
I tired to find another way to implement it. We know Unity can be implement by C#.
So, I think I can try to import .Net dll file. Finally, I find the way and it works very well.
The process was detailed as follows:
1. Copy C:\Program Files\Unity\Editor\Data\Mono\lib\mono\unity_web\System.Data to Unity's Asset folder.
2. using System.Data.SqlClient;
3. Do everything for MSSQL.
Enjoy it.
Allen
Comments
Post a Comment