Search Issue Tracker
Won't Fix
Votes
1
Found in
5.4.1f1
Issue ID
835102
Regression
No
Scene.name and Scene.isValid have incorrect values when a scene is returned with SceneManager.GetSceneByName
When a scene is returned with SceneManager.GetSceneByName, its properties (Scene.name and Scene.isValid) return foul values.
Steps to reproduce:
1) Open the attached project (835102_Scene.zip).
2) Open scene 'Test1'.
3) Press play.
SceneManager.GetSceneByName is used to find a scene. The scene if found, however, when trying to access its name, 'Null' is returned, Scene.isValid returns 'false' as well, even though the scene can be loaded using SceneManager.LoadScene. This does not occur when returning a currently active scene.
Reproduced on:
5.5.0b5, 5.4.1p3, 5.3.6p6
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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
shakecaine
Nov 02, 2017 13:05
Still a bug in Unity 2017.2
Please fix.
mikelortega
Feb 03, 2017 15:06
I'm afraid this is still active in Unity 5.5.0f3