Single Button Restart

Hello all, I am relatively new to Unity, and not at all savvy at scripting. I am currently building a VR experience for the Oculus Rift, and am facing a very simple problem; how to easily and instantly restart the program. I have everything in the scene working how I would like it to, except for every time I want to restart the scene I have to quit the program and reopen it. I’ve looked a bunch online, and found a variety of scripts that create an onscreen reset button or restart the scene on player death, but I really just want to map one key from the keyboard to work as an instant reset, and I don’t have the coding chops to rewrite someone else’s code to fit my needs. If anyone could help me out here I would be deeply appreciative!

  • Grant Kirkpatrick

These two documentation references should be everything you need for a simple restart script, good luck! If you get stuck after reading through them, post the code you’ve written and the community will be more than happy to lend a further hand.

I was able to piece it together from the links you gave me. Thank you very much!!