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.
Configure the row prefab
From the course: Unity: Working with Google Firebase
Configure the row prefab
- [Instructor] Hi, let's navigate into our scripts utilities folder and create a new C sharp script. Right-click, create, C sharp script. I'm going to call this row config. Now, what this is going to do is handle putting all the properties of our player objects into their respective labels in the UI for each row we put into the scroll view. So go ahead and open this up in model develop. I'm going to delete the start and update functions and I'm going to add in using unity engine dot UI. So our row config is going to have several public properties that we're going to hook up in the inspector. Public text score, public text email, public text level, public image profile pic, then public list of type sprite, we're going to call this images list. We're going to randomly select a profile pic for each of our rows from this images list because pulling real profile pics from a social login is beyond the scope of this course. So here our row config is going to have one public method, public…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.