Search Issue Tracker
Fixed in 5.6.0
Votes
1
Found in
5.5.0f3
Issue ID
871607
Regression
No
The function UnloadSceneAsync does not work with variable data type SceneManagement.Scene
Reproduction steps:
1. Open the attached project;
2. Open the scene "Scene0";
3. Enter the Play mode;
4. Observe the Console window;
Actual result: an error "ArgumentExeception: Scene to unload is invalid" shows up. The load scene is not removed from the SceneManager.
Expected result: the load scene should be removed from the SceneManager.
Workaround: in the documentation https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager.UnloadSceneAsync.html is written that the function UnloadSceneAsync variable can be int, string and SceneManagement.Scene data types. Everything works correctly with int and string types. However, the function does not understand SceneManagement.Scene data type variable.
Reproduced with: 5.5.0b4, 5.5.0f3, 5.6.0b4
Not reproducible with 5.4 and older versions because the function "UnloadSceneAsync" is not supported.
Comments (2)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [UI Builder] Viewport's gizmos for Margin and Padding disappear when dragging to modify the value and the cursor leaves the Spacing section
- "Multiplayer Center" window does not reflect changes made in "Other Packages" section
- Crash on D3DKMTOpenResource when capturing with RenderDoc while GPU Skinning is set to GPU(Batched)
- Editing and saving Curve changes in UI Builder window throws multiple errors in the Console
- [UI Builder] Value is not selected when left clicking on Spacing/Border Widget values
Jbaker08
Aug 01, 2017 10:26
I can vouch for tiptip. This still is broken.
tiptip
Jul 03, 2017 08:05
this is not fixed.
When using SceneManager.UnloadSceneAsync(sceneName)
the scenemanger doesnt unload the scene.
I have 5 scenes in BuildSettings,
and when I run this piece of code on ios it throwing: "ArgumentException: Scene to unload is invalid"
Debug.Log("sceneCount-> "+sceneCount);
for (int i = 0; i < sceneCount; i++)
{
Debug.Log("Scene Index-> "+SceneManager.GetSceneAt(i).buildIndex+ " name-> "+SceneManager.GetSceneAt(i).name);
}
Reproduced with: 5.6, 5.6,1, 2017.1.0f1