Show / Hide Table of Contents

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.

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
HighScoreTableRow
Namespace: PlayUR
Assembly: PlayUR.dll
Syntax
public class HighScoreTableRow : MonoBehaviour

Fields

| Improve this Doc View Source

cellPrefab

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

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

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

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 Source

CreateRow(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
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX