Accessing MySQL database using c# on unity?

前端 未结 6 358
面向向阳花
面向向阳花 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:52

    You can find a procedure in Unity Wiki with PHP, MySQL and C#/JavaScript.

    It consists of three steps

    1. Create a blank MySQL Database and a table.
    2. Create a PHP server side script (This will connect to the MySQL table, receive data from a Unity script (step 3), and query the database (the examples given are either inserting data or selecting))
    3. Create the Unity Controller Script (This will connect to the PHP script created in step 2)

提交回复
热议问题