![]() ![]() This client code is slightly modified to compile with the latest Unity version. The client code from Unity connects to the server, interacts with PDO and adds or retrieves score depending on which function is called. Unity requires that websites you want to access via a WWW Request have a cross domain policy. This file should be named 'crossdomain.xml' and placed in the root of your web server. It shows how to interact with a database in Unity using php on the server side and Unity + C# on the client side.Įnable cross domain policy on the server: You can also receive data multiple with json.īelow is a complete example from this Unity wiki. Run your database command on your server with php, perl or whatever language you are comfortable with but this should be done on the server.įrom Unity, use the Even with this, you still need to implement your own security but this is much more better than what you have now. Do the connection the correct way now so that you won't have to re-write the whole application. You will end of re-writing the whole code because the password is hard-coded in your application which can be decompiled and retrieved easily. ![]() It doesn't matter if security will come before or after. Please disregard any security risks with this approachĭo not do it like this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |