Leaderboard UI List
Displaying leaderboard results with zero code
public class LeaderboardUIList : MonoBehaviour
public UnityEvent Enabled;
This is called when the list is enabled and can be useful when you want to refresh a query when enabling (showing) the UI element.
public Transform collection;
This will be the parent of any records instantiated by the tool. Most often you would set this to be the
ContentGameObject of a ScrollRect or similar.
public GameObject template;
This is the "template" that will instantiated for each record the list displays. This template should implement a component that inherits from ILeaderboardEntryDisplay. You can either create your own UI Control script and implement the ILeaderboardEntryDisplay interface or you can use the Leaderboard Entry UI Record we provide which has a basic implementation already done.
public void Display(LeaderboardEntry entries)
You can connect this method to the Leaderboard Manager's Query Completed event to automatically display the results of any query ran on the manager. Doing this will give you a "code free" solution for displaying leaderboard entries.