I made enumeration for text id, so I can know which index inside the array is for what.
But, when I try to use it, it says undefined, this is my code
I made enumeration for text id, so I can know which index inside the array is for what.
But, when I try to use it, it says undefined, this is my code
Hi @Dava
An enumeration will work in editor on the script component to select the right value.
Later in code this.TextID
will hold the selected value:
// will print e.g. 1 if CashAmount was selected in editor
console.log(this.TextID);