I’m having problems(obviously!) with the new Unity GUI. I’m trying to make a simple calculator for calculating the surface area of a cylinder. I’ve got all my text boxes set up, and there is 2 Inputs I need. Radius and Height. I have an Input Field for Radius, but I need to figure out how I’m going to get the number the user Inputs into an int variable (I might get into floats later…) and then the possibility of accessing that. Something that would do this:
Radius = InputField.Text; //Or however you might do this.
Debug.Log("The Radius is: " + Radius);
btw, if you didn’t notice I code in C#. If you have a java example to give then that is fine too.