i have a textfield in a gui. i have a bool to display the gui and activate the textfield, when i am done editing it and return to the window, my previous text is still in the window. how do i clear the textfield so when i open the gui again the textfield is empty?
asked May 04 '10 at 11:12 AM
The text field only displays what you call it with, it is stateless (for the most part). You need to clear the string that you are holding onto the edited value with so that its empty when you pass it in.
So looking at the documentation: http://unity3d.com/support/documentation/ScriptReference/GUI.TextField.html you would set
answered May 04 '10 at 04:53 PM