is there any chance I connect directly to mysql without php?
Of course. A Unity player works like any C# application, so you could do it. You could pick some database abstraction layer for C# and use that. No problem (unless you export to WebGL or something)…
But you should not do that.
With the client accessing the DB directly, you obviously hand out full control over the DB. Anyone who wants to harm you could not only cheat in-game but hack and delete your DB with the info inside the client.
1 Like
You say packets? is there any chance of someone breaking into my db game through?
obviously.
you definitely don’t want direct updates to a table via a remote game session… only send the clients data and have a backend process it, verify it, and deal with updates.
1 Like