Reset Button

“Input Button R is not setup” Any help?

function Update (){
    if(Input.GetButtonDown("R")){
 
		Application.LoadLevel(0);
    }
}

1 Answer

1

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.