Search Issue Tracker
Fixed in 2020.2.X
Votes
3
Found in
2019.3
2019.3.4f1
2020.2
Issue ID
1226498
Regression
No
ArgumentException is thrown and Scene is not unloaded when using SceneManager.UnloadSceneAsync with Reload Scene option disabled
How to reproduce:
1. Open the attached project's "case_1226498-Project.zip" Scene labeled "SampleScene"
2. In the Editor's top toolbar, navigate to Game->World
3. Enter the Play Mode
4. Press the "Enter" key
5. Wait for the SceneManager.UnloadSceneAsync function to be called
6. Inspect the Console Window
Expected result: The "Island" Scene is unloaded and no errors are thrown
Actual result: The "Island" Scene is not unloaded and an "ArgumentException: Scene to unload is invalid" error is thrown
Reproducible with: 2019.3.6f1, 2020.1.0b2, 2020.2.0a16
Couldn't test with: 2017.4.38f1, 2018.4.19f1 ("Enter Play Mode Settings" do not exist)
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (fix version 2020.2):
Fixed in Unity 2020.2.0a17 and above