Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/content.php on line 3 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/content.php on line 13 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/content.php on line 23 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/content.php on line 33 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/content.php on line 43 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/content.php on line 53 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/content.php on line 63 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/content.php on line 73 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/content.php on line 83 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/content.php on line 93 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/content.php on line 103 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/content.php on line 113 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/content.php on line 123 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/content.php on line 133

Unity: Start with selected scene

Sometimes when you test your code in Unity you really need to start from a specific scene. There is no way (that I know of) to get Unity to do this for you, but since it’s really simple to extend the editor with your own code I wrote a simple script that saves the current scene and loads a menu scene before running. When you’re done testing, you run the same method again and your last scene will be loaded for you.

Thank you, Unity for making my life so easy!

Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/comments.php on line 3 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/comments.php on line 13 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/comments.php on line 23 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/comments.php on line 33 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/comments.php on line 43 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/comments.php on line 53 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/comments.php on line 63 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/comments.php on line 73 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/comments.php on line 83 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/comments.php on line 93 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/comments.php on line 103 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/comments.php on line 113 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/comments.php on line 123 Notice: Undefined index: HTTP_REFERER in /home/a/arainydayse/arainydayse/arainyday.se/www/wp-content/themes/twentytwelve/comments.php on line 133