From the course: Unity: Working with Google Firebase

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Display profile information

Display profile information

From the course: Unity: Working with Google Firebase

Start my 1-month free trial

Display profile information

- 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…

Contents