PHP and MySQL with Unity Tutorials

Hi all! I’m looking to create a game which stores all the player info in a database, and I would prefer to do it via MySQL. I am very experience with both MySQL and PHP. Are there any good tutorials out there? I have searched for one for quite a long time and have gotten no where. All I really need is the C# code to communicate with the PHP file to insert and retrieve the data. I’d appreciate any and all help!

Thanks in advance!

That’s super easy in Unity. UnityWebRequest allows you to send requests of any kind and retrieve any data of responses and WWWForm class allows you specifically to send forms. Also you need coroutines to wait in backgroud while request executes remotely. That’s it, make yourself familiar with those 3 and you are Unity Web API master :slight_smile:

3 Likes

If you want a video tutorial look up a “broad to bits gaming” on youtube, he did just that recently, dunno if its any good though, havn’t watched it.