Search Issue Tracker
Fixed in 5.3.0
Votes
0
Found in
3.4.0f5
Issue ID
428338
Regression
No
Application.loadedLevelName doesn't report the correct level
Application.loadedLevelName doesn't report the correct level name in the editor unless the scene has been played at least once since loading.
- Import the Unity Package.
- Load the scene 'LevelNameTest'
- Select the GameObject in the scene named GameObject.
- Click the "Print Loaded Level Name" button in the custom inspector.
- Check the debug log, it shows that the current value for Application.loadedLevelName is "".
- Press Play to run the scene, then again to stop the scene.
- Press the button "Print Loaded Level Name" in the inspector again. The Debug log should now display the correct name for the level.
Comments (1)
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
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
ArtyBrest
Dec 15, 2014 07:40
Confirmed in v4.6.1f1.
Please fix.