Search Issue Tracker
Duplicate
Votes
0
Found in
2017.1.1f1
Issue ID
976843
Regression
No
SceneManager.SetActiveScene cannot be called inside SceneManager.sceneLoaded callback
Reproduction steps:
1. Open the attached project "SceneActivationBug.zip";
2. Open the "StartingScene";
3. Click Play in Unity;
4. Press the "Switch Scenes" button in the game window;
Expected results: the scene will be loaded successfully and SceneManager.SetActiveScene will show "True" in the console;
Actual results: SceneManager.SetActiveScene will print "False" to the console;
Reproduced on: 5.6.4p3, 2017.1.2p4, 2017.2.1f1, 2017.3.0f2, 2018.1.0a7.
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
- Default Preset application and Reset() method execution order is different when adding a Component via the Inspector versus calling Reset via the Component context menu
- Scene view is not outputting HDR when the "Use HDR Display Output" option is enabled, DX12 is selected as the Graphics API, and URP/HDRP is in use
- Sprite Atlas results in suboptimal packing even when "Allow Rotation" is enabled
- References placed in a UnityEvent change to the same reference when multi-selecting their GameObjects
- "ShadowCaster2D" Component doesn't work when the "Casting Source" is set to "Polygon Collider 2D"
This is a duplicate of issue #810327