- Home /
 
              This post has been wikified, any user with enough reputation can edit it. 
            
 
            Textfield button PLZ HELP!!!
I tryed
function OnGUI () {
     stringToEdit = GUI.TextField (Rect (10, 10, 200, 20), stringToEdit, 25);
     
     
      if(GUI.Button(Rect(10,50,50,30),"Click"))
         if  (GUI.TextField == "times")
                 Screen.showCursor = false;
 
               But the button isnt hiding the cursor why not? plz help and if theres a better way to right this could you tell me im new to this Thank - Michael
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by robertbu · Nov 01, 2013 at 06:35 PM
Line 5 should be:
 if (stringToEdit == "times")
 
              Your answer