-
Notifications
You must be signed in to change notification settings - Fork 2
DataInputField
ExplodingThings edited this page Feb 18, 2023
·
5 revisions
DataStorage script to send data to.
Component the user inputs text into.
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()
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(object)
Sets input to the string returned when doing .ToString() on the object argument.
clearData()
Sets input to have no text content with changeData().