Skip to content

Commit

Permalink
Fixed "scene to unload is invalid" error by switching to the newer "U…
Browse files Browse the repository at this point in the history
…nloadSceneAsync" method with a string "scene name" parameter (#77).
  • Loading branch information
zachkinstner committed Jul 5, 2018
1 parent 0898d93 commit d529bd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Unity/Assets/Hover/Core/Scripts/Utils/HoverSceneLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public void OnDestroy() {
return;
}

SceneManager.UnloadScene((Scene)vLoadedScene);
Debug.Log("Removed scene for editor: "+vLoadedScene, this);
SceneManager.UnloadSceneAsync(SceneName);
Debug.Log("Removing scene for editor: "+SceneName);
#endif
}

Expand Down

0 comments on commit d529bd4

Please sign in to comment.