DataInputField - ORF-4450/PitScouting GitHub Wiki

Variables

ds

DataStorage

DataStorage script to send data to.

input

InputField

Component the user inputs text into.

Functions

Start()

Start()

If ds is null it gives an error, disables the GameObject this script is on, and stops running.

Sets input to the component returned by GetComponent()

FixedUpdate()

FixedUpdate()

Adds new data by using addData from ds with the key being the name of the GameObject this script is on and the value being the text of input. It can overwrite the DataInput is set to this.

changeData()

changeData(object)

Sets input to the string returned when doing .ToString() on the object argument.

clearData()

clearData()

Sets input to have no text content with changeData().

⚠️ **GitHub.com Fallback** ⚠️