Udemy

Unity 5 Interact with the database like a pro - php mysql

Enroll Now
  • 1,103 Students
  • Updated 7/2019
3.9
(116 Ratings)
CTgoodjobs selects quality courses to enhance professionals' competitiveness. By purchasing courses through links on our site, we may receive an affiliate commission.

Course Information

Registration period
Year-round Recruitment
Course Level
Study Mode
Duration
4 Hour(s) 15 Minute(s)
Language
English
Taught by
Yohann Taieb
Rating
3.9
(116 Ratings)

Course Overview

Unity 5 Interact with the database like a pro - php mysql

Full video workshop on how to setup a professional backend to store and retrieve data for all Unity games unity unity

Note: all software used are FREE to download and use on PC, LINUX and MAC computers (no need to pay, cheers!)

This course teaches you how to create an authentication system for video games made with Unity.

With the authentication system, users can sign up and login into your game from any computers at anytime. It allows you, the developers, to store and retrieve important data such as the player's email address and password, but also critical information such as which weapons and gear items characters are wearing and which items are in the player's backpack.

All the great games are using it, look at world of warcraft, diablo, battlefield or league of legends.

This course goes beyond Unity as it teaches you how to program the server side that will interact with Unity using MySQL and in PHP.

The course is easy to follow because all the steps are show to you in the video lectures, plus you also get all the source codes as reference.

Nobody teaches you how to set up storing/retrieving game player data on a real server, only on home computers as a server, and of course that will not work except to entertain a few friends.

I'll see you in the course

***

Why use PhP and not connect Unity straight to the database?

It's a matter of design. Why would you want your players to connect to the DB directly? Assuming that you do not need to use the DB that often (just to adjust some values which might happen every couple seconds) It's probably always better to have an API in place that takes care of the communication between the client and the server/DB instead of having your players connect directly to the DB.

Also, it would probably mean storing your DB access information(db username and password) in your code or somewhere else on the clients side, which would mean that anyone would be able to find it out in some way. Wwhich is obviously something you don't want to happen.

Now if a user calls a simple SQL link, he/she would have all control over what happens on the server and the DB.

Using the PHP layer, the DB isn't exposed to the player directly and as a developer, you’re able to check the data that your server receives to make sure that somebody isn't cheating.

The Php server layer checks the incoming data before forwarding it to the DB or else everyone could do some terrible things such as specify some values for the URL and just send them directly to your DB.

Also, you don’t want to store the data locally, within the player’s hard drive, because any data stored locally can be easily accessed and modified, and nefarious players could easily equip epic loot without having to defeat bosses, or change their score to a gazillion number.



Course Content

  • 8 section(s)
  • 45 lecture(s)
  • Section 1 Initial Setup
  • Section 2 Authentication System
  • Section 3 The Dabatase Layer
  • Section 4 PHP Server setup and coding
  • Section 5 Connecting Php, MySql and Unity
  • Section 6 Player gear storing and retrievial
  • Section 7 Player Backpack - Data storing and retrieving
  • Section 8 BONUS

What You’ll Learn

  • build a professional backend layer to store and retrieve data for your Unity video game, understand how to use MySQL and PHP as a solid data layer to communicate with Unity, learn basics of PHP, learn basics of MySQL, learn quick setup of PHP and MYSQL for Unity, read data from PHP and MySQL, retrieve data from PHP and MYSQL, insert data into MYSQL, understand how Unity interacts with other systems

Skills covered in this course


Reviews

  • A
    Amos Wilson
    5.0

    With my previous experience with SQL and PHP this was easy to follow and enjoyable to try! Cant wait to implement this in creative ways with Unity.

  • R
    Raul S
    1.0

    Bad structured course. Concepts mixed and not explained. A waste of time.

  • J
    Jonathan Montgomery
    2.5

    It's good to an extent. The course is severely outdated, which is forcing me to do a lot of research outside of the course to figure out what the issue is. The general concepts are there, but be ready for a lot of errors. It seems as though response is poor when asking questions as well. The other issue is that there is no explanation on what the code is doing, he just says to do it and then you have to pray it works because if it doesn't, you're devoting a couple of hours to research. BE AWARE THAT IT IS DESIGNED FOR UNITY 5 AND MODIFICATIONS ARE REQUIRED TO WORK WITH NEWER VERSIONS! When people ask for an updated solution, his reply is to roll back Unity versions to 5... Also: 1. All of the calls to $dbconnection in the login and registration scripts do not work. Replace it with $dbLink instead. 2. Make sure the charset for EVERYTHING is utf-8 or you will not be able to communicate with the db correctly. I would honestly recommend passing on this course if you are able to find another option...

  • C
    Cyrus Moreno
    3.0

    Thanks for this tutorial! I wasn't able to use the sample project but I am able to replicate it on my project. In 2 days, I have a working prototype.

Start FollowingSee all

We use cookies to enhance your experience on our website. Please read and confirm your agreement to our Privacy Policy and Terms and Conditions before continue to browse our website.

Read and Agreed