- Home /
Question by
InfamousStudios · Jan 17, 2013 at 03:24 PM ·
inputloadlevel
Load Level when Key is pressed
I want a level to load when the Space Bar is pressed down. I tried using this script:
if (Input.GetKeyDown.KeyCode:Space);
Application.LoadLevel("LevelOne");
I tried looking for the answer in the Search, nothing came up. Any suggestions?
Comment
Answer by Lovrenc · Jan 17, 2013 at 03:26 PM
if(Input.GetKeyDown(KeyCode.Space))
Application.LoadLevel("Level One");
Your answer
![](https://koobas.hobune.stream/wayback/20220613091106im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Loading a level on contact 2 Answers
level loader script wont work 1 Answer
how do you actually stop a game? 3 Answers
Load a scene/level when enemy is close... 1 Answer
random level loader? 1 Answer