Show / Hide Table of Contents

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
Object
Component
Behaviour
MonoBehaviour
HighScoreTable
Namespace: PlayUR
Assembly: PlayUR.dll
Syntax
public class HighScoreTable : MonoBehaviour

Fields

| Improve this Doc View Source

autoHeight

Declaration
public bool autoHeight
Field Value
Type Description
bool
| Improve this Doc View Source

closeButton

Declaration
public GameObject closeButton
Field Value
Type Description
GameObject
| Improve this Doc View Source

closeCallback

Declaration
public HighScoreTable.CloseCallback closeCallback
Field Value
Type Description
HighScoreTable.CloseCallback
| 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
Type Description
PlayURPlugin.LeaderboardConfiguration
| 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
Type Description
HighScoreTable.TableData
| Improve this Doc View Source

height

Declaration
[HideInInspector]
public float height
Field Value
Type Description
float
| Improve this Doc View Source

highlightRowID

Declaration
[HideInInspector]
public int highlightRowID
Field Value
Type Description
int
| 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
public bool initOnStart
Field Value
Type Description
bool
| 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
Type Description
string
| 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

scrollRect

Declaration
protected ScrollRect scrollRect
Field Value
Type Description
ScrollRect
| Improve this Doc View Source

showCloseButton

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
Type Description
bool
| Improve this Doc View Source

title

Declaration
public TextOrTMP title
Field Value
Type Description
TextOrTMP
| Improve this Doc View Source

useKeyCodeForClose

Declaration
public KeyCode useKeyCodeForClose
Field Value
Type Description
KeyCode

Methods

| Improve this Doc View Source

ClearTable()

Declaration
public void ClearTable()
| Improve this Doc View Source

Close()

Declaration
public void Close()
| Improve this Doc View Source

Init()

Declaration
public void Init()
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX