Quantcast
Viewing all articles
Browse latest Browse all 10823

Reloading scenes

When I reload a scene, I get a Null Reference Exception which I am tracking down. But I thought when Application.LoadLevel executes it destroys the current scene, so can't I then reload the scene as if it was the first time?

In my case the Menu scene is the first scene after the Splash/Loading screen that occurs right after loading the app.

The reload path is:
Code (csharp):
  1. Menu scene -> Play button -> Level 1 scene -> Pause button -> Menu button-> Menu scene -> Play button -> Level 1...
Reloading scenes

Viewing all articles
Browse latest Browse all 10823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>