Hey Guys Just a quick question, if I want to take the users input from an Input Field and place that value into a variable what do I need to do in JS. Setting it as an int would be preferable.
The same prinicples apply in JS, the System.Convert and the int typecast. This should be easy enough to convert for your needs Code (CSharp): int numVariable = 0; void OnGUI(){ numVariable = System.Convert.ToInt32(GUI.TextField(new Rect(0,0,300,300),(string)numVariable)); }