Join Harrison Ferrone for an in-depth discussion in this video Display profile information, part of Unity: Working with Google Firebase.
- We're going to fill the profile panel…in our player list much the same way…as we did with our scroll view rows.…Head into the scripts utilities folder,…right click, create, C# Script.…I'm going to name this Profile config.…Delete the start and update functions,…and let's add some using statements.…Using UnityEngine.UI:…Using Firebase:…and Using Firebase.Auth.…
We need a few public properties here,…so Public Text emailString and Public Image profilePic.…Going to have a public void config method,…and this is going to take in FireBase.Auth.FirebaseUser.…Here we're just going to set this…emailString.text=string.Format…We're going to say, you are signed in as,…and we're going to say user.Email…Now, our profile pic…is already set by default in the editor,…but this is just a way you could set it here as well…if you wanted.…
In our playerboard manager,…we need UsingFirebase.Auth…and we're going to create Firebase.Auth,…Firebase.Auth property…in the Awake function, before we clear our list,…we're going to say auth=Firebase.Auth.DefaultInstance;…
- 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.