Join Harrison Ferrone for an in-depth discussion in this video Retrieve player data, part of Unity: Working with Google Firebase.
- [Instructor] While I've still got X Code open,…I'm going to create a few dummy users,…so we have some data to work with.…So there's a new player,…I'm going to rerun this.…I think 4 players should be enough,…so I'm going to click out of X Code,…and out of the simulator.…
And if you go back into your Fire Quest project,…you should all your test users correctly added.…Now we're going to add a player list variable…into our player board manager,…the idea being that when this script initializes,…we'll fetch our entire list of players,…and then assign to this variable.…At the top of the script,…let's have a public list…of type player.…I'm going to call this "player list,"…and I'm going to initialize it to a new list.…
I'm going to delete the Start and Update functions,…because we're not going to use those,…and I'm going to use the Void Awake method instead.…So the first thing we need to do here is…clear our player list on load.…Otherwise when we pull new data,…it's just going to append it to the list,…and that can lead to a lot of duplicate data.…
- 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
Careers in the Game Industrywith Christian Bradley1h 19m Beginner
Building Custom Tools to Extend the Unity IDEwith Jesse Freeman2h 11m Intermediate
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.