Visit LEDU token page

How to Create a Back-End User Authentication Server for Unity3D


Intro video - Back end user authentication server for Unity3D

with ZeronevDev|4 years experience


Watch Full Video | +150 LEDU

How to Create a Back-End User Authentication Server for Unity3D

  • English
  • Game Development
  • UnityUnity
  • (7493)
  • Project length: 8h 47m

With multiplayer games and services becoming more and more popular each time as technology progresses, you need to be on par with that technology as well. Knowing server programming, authentication and user session persistence for your games is a solid skill to have under your belt.


How to Create a Back-End User Authentication Server for Unity3D


In this project, you will learn how to code a server for user authentication, to use Unity3D web requests, set up our own user database, and learn how to communicate to the server and of course, not forgetting about the security of the user data. You will be guided through the very beginning of how a server is made from scratch and I will teach you the basics of the language we will use for the server as well, we will use Node.js, Express and MongoDB.

What are the requirements?

  • Basic C# and little programming knowledge.
  • Unity3D basic knowledge
  • Desire to get started into back-end development.
  • Stream in 1080p to be able to read code well

What is the target audience?

  • Perfect for beginners in server side programming.
  • Anyone interested in back-end development and Unity Web Requests
  • It’s also great if you have back-end experience but want to apply it for games or user authentication.

What will you learn after finishing this project?

  • Server logic for user login/registration.
  • Unity3D full authentication logic
  • Uploading and retrieving data from a NoSQL Database.
  • Solid understanding of different types of databases.
  • Use Node.js to write server side code.
  • Use Express server side framework.
  • Solid understanding of MongoDB.
  • Install npm packages.
  • User session persistence inside Unity3D Engine.
  • Understand HTTP Requests
  • RESTful Routing.

Project Outline

Session 1: Introduction to Front End Development - In this session, we will setup our tools needed for the upcoming sessions get understanding a bit on how the web works.

  • Session 1.1: Setting up the right tools.
  • Session 1.2: Understanding front and back end developer differences.

Session 2: Introduction to Web Requests - We will begin getting our hands dirty by understanding and using UnityWebRequest API.

  • Session 2.1: Introduction to web requests
  • Session 2.2: JSON data.
  • Session 2.3: First time using UnityWebRequests.
  • Session 2.4.1: Using Unity3D with JSON data - PART 1
  • Session 2.4.2: Using Unity3D with JSON data - PART 2

Session 3: Setting up our Back End Environment - We will begin setting up all our server side tools that we will use for Unity3D.

  • Session 3.1: Installing basic tools.
  • Session 3.2: Setting up our server IDE.
  • Session 3.3: Setting up MongoDB.
  • Session 3.4: Setting up our first server.

Session 4: Server Side Programming - In this session we will begin programming our server for registering our user and coding the user login/register server logic.

  • Session 4.1: Intro to Command Line.
  • Session 4.2: Understanding JavaScript syntax.
  • Session 4.3: Introduction to Node.
  • Session 4.4: Using Express framework.
  • Session 4.5: Introduction to Databases and MongoDB.
  • Session 4.6: Using Mongoose for user data.
  • Session 4.7: RESTful Routing.
  • Session 4.8: Refactoring our Server.

Session 5: Communicating to the server with Unity3D - In this session we will begin to upload and download data to/from the server, all from Unity3D.

  • Session 5.1: User registration.
  • Session 5.2: User login.
  • Session 5.3: User session persistence

Session 6: Deploying Server - In this session we will deploy our server and database.

  • Session 6.1: Introduction to Git.
  • Session 6.2: Deploying into Heroku.
  • Session 6.3: Deploying to MongoLab.
  • Session 6.4: Environment Variables.

Session 7: Using HTTPS in Unity - In this session we will finally wrap up, making some changes to our Unity3D Project to use safe HTTPS connection.

  • Session 7.1: Using HTTPS on Unity3D.

Session 8: Project Recap - In this session we will talk about what we achieved and what we can expand upon, with our knowledge. As well as giving you a small challenge for exercising what we learned


Average rating

5(7493 Reviews)
  • Avatar


    8 days ago