Accessing MySQL database using c# on unity?

前端 未结 6 382
面向向阳花
面向向阳花 2021-01-01 23:06

I have just started using C# and do not know much about it. I am using the 3d game engine called Unity and trying to write a c# script to access the MySQL database that I am

6条回答
  •  难免孤独
    2021-01-01 23:42

    Unity3D uses stripped Mono.net which doesn't support database directly. You can write your own DLL in C# .NET which does data access for you. Then add it in your Unity3D project.

    While you are writing your own DLL, make sure when you bring that DLL to your project, you also copy referenced DLL in the same folder. Best approach would be to use Mono.NET.

提交回复
热议问题