Class HighScoreTable
A high-score table which can be used to display a leaderboard.
Data is stored using PlayUR
This MonoBehaviour should be placed on a high-score table prefab. This script is already included in the provided highscore table prefab in PlayURPlugin/HighScores.
Inheritance
Object
Component
Behaviour
MonoBehaviour
HighScoreTable
Assembly: PlayUR.dll
Syntax
public class HighScoreTable : MonoBehaviour
Fields
|
Improve this Doc
View Source
autoHeight
Declaration
Field Value
|
Improve this Doc
View Source
Declaration
public GameObject closeButton
Field Value
Type |
Description |
GameObject |
|
|
Improve this Doc
View Source
closeCallback
Declaration
public HighScoreTable.CloseCallback closeCallback
Field Value
|
Improve this Doc
View Source
configuration
The configuration for this leaderboard, this is used to determine how to display the data.
Declaration
public PlayURPlugin.LeaderboardConfiguration configuration
Field Value
|
Improve this Doc
View Source
contentPanel
Declaration
protected RectTransform contentPanel
Field Value
Type |
Description |
RectTransform |
|
|
Improve this Doc
View Source
fakeData
Declaration
public HighScoreTable.TableData fakeData
Field Value
|
Improve this Doc
View Source
height
Declaration
[HideInInspector]
public float height
Field Value
|
Improve this Doc
View Source
highlightRowID
Declaration
[HideInInspector]
public int highlightRowID
Field Value
|
Improve this Doc
View Source
initOnStart
Should we automatically initialise the leaderboard on the Unity Start message? If false, you will need to call Init() manually.
Declaration
Field Value
|
Improve this Doc
View Source
leaderboardID
The id of the leaderboard to handle all data, this id is unique within a game, but doesn't need to be unique across the entire PlayUR platform.
Declaration
public string leaderboardID
Field Value
|
Improve this Doc
View Source
loadingObject
Declaration
public GameObject loadingObject
Field Value
Type |
Description |
GameObject |
|
|
Improve this Doc
View Source
rowPrefab
What prefab should be instantiated for each row of the leaderboard? This prefab should have a HighScoreRow component on it.
The provided prefab in PlayURPlugin/HighScores can be linked for this.
Declaration
public GameObject rowPrefab
Field Value
Type |
Description |
GameObject |
|
|
Improve this Doc
View Source
rowsParent
Declaration
public RectTransform rowsParent
Field Value
Type |
Description |
RectTransform |
|
|
Improve this Doc
View Source
Declaration
protected ScrollRect scrollRect
Field Value
Type |
Description |
ScrollRect |
|
|
Improve this Doc
View Source
Should we show a close button on the leaderboard? If true, the leaderboard will close when the close button is clicked.
Declaration
public bool showCloseButton
Field Value
|
Improve this Doc
View Source
title
Declaration
Field Value
|
Improve this Doc
View Source
useKeyCodeForClose
Declaration
public KeyCode useKeyCodeForClose
Field Value
Methods
|
Improve this Doc
View Source
ClearTable()
Declaration
|
Improve this Doc
View Source
Close()
Declaration
|
Improve this Doc
View Source
Init()
Declaration