Search Issue Tracker
Fixed in 2021.2.X
Votes
1
Found in
2017.4.0f1
2018.2.20f1
2018.3.0a1
2018.4.0f1
2019.1.0a1
2019.2.0a1
2019.3.0a1
Issue ID
1155473
Regression
No
SceneManager.GetSceneByName() returns Null when buildsettings path to the Scene is given as a parameter
How to reproduce:
1. Download and open the attached project "1155473.zip"
2. Start Play mode
3. Inspect the Console window
Expected result: Scene's name is logged
Actual result: Null is logged
Reproducible with: 2017.4.27f1, 2018.3.14f1, 2018.4.1f1, 2019.1.3f1, 2019.2.0b4, 2019.3.0a3
Notes:
The documentation states that SceneManager.GetSceneByName() should work when a path to the Scene is given.
SceneManager.GetSceneByPath() works as expected.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Frame Debugger's Hierarchy is not navigable when connecting it to the project built with the Volumetric Fog
- The number of SetPass Calls is increasing when attaching the Frame Debugger to the Player
- Scrollbar briefly appears in the Package Manager during installation process even when the package list is too short to require scrolling
- Script resets to use the previous Skybox color when saving the Scene changes
- [2D] Sprite Library Editor window throws NullReferenceException error when entering Play Mode with Game View maximised
Add comment