Join Harrison Ferrone for an in-depth discussion in this video The database manager, part of Unity: Working with Google Firebase.
- [Instructor] Go into the scenes folder…and open up the player list scene.…The UI here is also pretty simple.…On the left, we have a player info panel…and on the right, we have a scrolling list…where all our players will show up…from the database.…Now let's take a look at the database manager…which has the database manager script on it.…All I've done in this script is set up the singleton class.…This will cut out any issues with conflicting calls…and updates to our firebase database.…
If you're not familiar with the singleton design pattern,…all its doing here is creating a shared instance variable…initially set to null.…The first time the script initializes,…it'll check if the shared instance is null.…If it is, we'll assign it to the current instance.…However, if the shared instance already exists,…the script will self destruct,…leaving us with the one instance…which is exactly what we want.…The last line, don't destroy on load,…makes sure that once an instance is successfully checked,…it doesn't get destroyed from scene to scene.…
- Working with Firebase
- Adding signup and login functionality
- Building a player class
- Saving data
- Retrieving data
- Displaying data in the Unity GUI
- Making a reusable asset package for other Unity projects
Skill Level Intermediate
Building Custom Tools to Extend the Unity IDEwith Jesse Freeman2h 11m Intermediate
Careers in the Game Industrywith Christian Bradley1h 19m Beginner
Unity 5: 2D Building an Adventure Gamewith Jesse Freeman2h 22m Intermediate
1. Project Overview
2. Introduction to Firebase
3. Authenticating Players
4. Using the Realtime Database
5. Displaying Data
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.