UnityWebRequest MySQL 教學Kelvin 老師分享如何架設自已的伺服器,支援 Unity 開發網路連線遊戲。 快速連結 [程式碼] [Dreamweaver資料庫設定] [Hinet架站]
玩家資料表 (tb_player)
物品資料表 (tb_item)
背包資料表 (tb_inventory)
任務資料表 (tb_quest)
排行榜資料表 (tb_leaderboard)
連線除錯 - 若出現以下錯誤: InvalidOperationException: Insecure connection not allowed UnityEngine.Networking.UnityWebRequest.SendWebRequest ()
解決方式如下:開啟 [ Project Settings > Player > Allow downloads over HTTP ] 設定 Always allowed
管理 MySQL 資料庫連線,使用 <?php require_once('Connections/Connection.php'); ?> 資料庫連結設定檔案改為外部連結,便於管理。
Script-LoginSystem-20231230.png /dev/ |