Class HighScoreTableRow
Represents a single row of a highscore table. This is a container for the cells. This MonoBehaviour should be placed on a high-score table row prefab. This script is already included in the provided highscore table row prefab in PlayURPlugin/HighScores.
Namespace: PlayUR
Assembly: PlayUR.dll
Syntax
public class HighScoreTableRow : MonoBehaviour
Fields
| Improve this Doc View SourcecellPrefab
What prefab should be instantiated for each cell of this row? A cell is a column of the row, i.e. the name, and the score value. The prfab should have a HighScoreTableCell script on it. The provided prefab in PlayURPlugin/HighScores is may be used for this.
Declaration
public GameObject cellPrefab
Field Value
Type | Description |
---|---|
GameObject |
cellsParent
The parent transform to instantiate the cells into. If null, will use the transform of this GameObject. This is already set on the provided prefab.
Declaration
public Transform cellsParent
Field Value
Type | Description |
---|---|
Transform |
editCellPrefab
What prefab should be instantiated for an editable cell of this row? Used for entering in a new high score entry.
Declaration
public GameObject editCellPrefab
Field Value
Type | Description |
---|---|
GameObject |
highlightObject
Represents the visuals to be enabled for if this row is "highlighted" (i.e. it is a newly created entry). This is already set on the provided prefab.
Declaration
public GameObject highlightObject
Field Value
Type | Description |
---|---|
GameObject |
Methods
| Improve this Doc View SourceCreateRow(RowData, LeaderboardConfiguration, bool, bool)
Used internally by PlayUR.
Declaration
public void CreateRow(HighScoreTable.TableData.RowData row, PlayURPlugin.LeaderboardConfiguration configuration, bool highlight = false, bool edit = false)
Parameters
Type | Name | Description |
---|---|---|
HighScoreTable.TableData.RowData | row | |
PlayURPlugin.LeaderboardConfiguration | configuration | |
bool | highlight | |
bool | edit |