- Home /
How can I quickly test the first scene?
Hopefully I'm just missing something easy.
Is there a quick way to test the first scene in the project? You can setup scene order in the build settings, and obviously this works great for the builds, but why can't you quickly test within the editor starting from the first scene in this list? It's rather annoying to have to search around for the right scene every time I want to test my project from the start...
Answer by $$anonymous$$ · Mar 25, 2013 at 08:32 PM
You could solve this with some code: have a script on awake check too see if your playing it in the editor, if you are, call the first scene using Application.LoadLevel(0)
;
Answer by Loius · Mar 25, 2013 at 08:33 PM
I think some quick Editor extension should be able to do it...
It might be best to create an Editor Window so you can drag in the scene you want into an ObjectField, then you can use these two links to work it from there:
http://docs.unity3d.com/Documentation/ScriptReference/EditorApplication.OpenScene.html
http://answers.unity3d.com/questions/17128/programmatically-start-play-mode-in-the-editor.html
Open the scene in your ObjectField (I'd highly recommend prompting for save first), then use the second link to start playing.
Your answer
![](https://koobas.hobune.stream/wayback/20220613095102im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Can I use Unity to create a Facebook Game? 1 Answer
Object Reference Not Set As Instance error from ngui code 1 Answer
Problem in unity or just my computer? 0 Answers
Vector Math Question 2 Answers