DataOutput - ORF-4450/PitScouting GitHub Wiki

Variables

DS

DataStorage

Placeholder

key

string

Placeholder

prefix

string

The text that goes before the value of the key

suffix

string

The text that goes after the value of the key

text

Text

Placeholder

Functions

Start()

Start()

If an error happens, such as DS or key being null, this script gets disabled

Sets text to the component returned by GetComponent()

LateUpdate()

LateUpdate()

If text is not null, and data in DS contains the key, which is the string variable key in this script, the text of text gets set to the prefix + the value of the key from data in DS + the suffix.

Otherwise the text of text says that the key does not exist