- Home /
 
               Question by 
               RuiFerreira · Nov 17, 2013 at 03:15 AM · 
                button  
              
 
              Reset Button
"Input Button R is not setup" Any help?
 function Update (){
     if(Input.GetButtonDown("R")){
  
         Application.LoadLevel(0);
     }
 }
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by HRLWGames · Jan 03, 2014 at 05:48 AM
You would likely want to use Input.GetKeyDown(Keycode.R) for this. GetButtonDown is set up through Edit>Project Settings>Input, however it is easier to use GetKeyDown in this situation.
Your answer
 
 
             Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Making my GUI Button Movable in Play mode 0 Answers
Button Location Problems -1 Answers
Help In Making a SphereCast for 3D Tire! Working RayCast Script included! 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                