Breaking Open the Black Box

The Secrets and Stories of Game Design

Pages

  • Game Design Lessons
  • Learning From My Past
  • Post-Mortems
  • Who am I?
Follow @Xelnath [mc4wp_form]

Powered by Genesis

Reloading a multi-scene scene at runtime in Unity (for debugging)

2016.03.24 by Xelnath Leave a Comment

Using Unity 5.3’s new Scene Manager can be quite challenging. There’s some basic stuff that’s missing. One of these is the ability to reload the current additive scene.

Here’s my quick hack to make it work at run-time.  This doesn’t go so well in the editor, though, as the scene manager doesn’t allow you to unload scenes loaded in the editor.

http://pastebin.com/My8q2b1v

 

This will let you reload the scene at runtime using “R”.

 

 

Filed Under: Uncategorized

March 2016
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  
« Dec   May »

Blog Stats

  • 226,111 hits

Leave a Reply

Your email address will not be published. Required fields are marked *

Archives

  • August 2022
  • July 2019
  • October 2018
  • May 2018
  • February 2018
  • June 2017
  • February 2017
  • November 2016
  • September 2016
  • August 2016
  • May 2016
  • March 2016
  • December 2015
  • September 2015
  • August 2015
  • February 2015
  • January 2015
  • November 2014
  • October 2014
  • September 2014
  • July 2014
  • June 2014
  • January 2014
  • October 2013
  • September 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • January 2012
  • September 1816