2021
09-10
09-10
Unity连接MySQL并读取表格数据的实现代码
表格如下:在Unity读取并调用时的代码:而如果想要查看该数据库中的另一个表,不是直接使用Table[1],而是需要更改SELECT*from<?>的表名代码:usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;usingMySql.Data.MySqlClient;usingSystem.Data;usingSystem;publicclassgetGameUserAccount:MonoBehaviour{//StartiscalledbeforethefirstframeupdatevoidStart(){...
继续阅读 >