I am trying to create a game object that will display the total number of users that have opted into a competition. The user is given the option to Join or optIn to a competition. Once they have opted in, they are placed on a list that is displayed as a leaderboard. I need to get a total count of the number of users who have opted in, and display that above the leaderboard.
If you mean that you have a variable of type List in your code and you want to know how many things are in that list, that’s just myVariable.Count
If that’s not what you’re asking, then you have included exactly the wrong details in your question. It doesn’t matter that this is a leaderboard or that players can opt in or how it’s displayed on the screen. What matters is how you are representing and accessing the data in code.
1 Like
That is helpful. Thank you!