Search Issue Tracker

Active

Under Consideration for 6000.5.X

Votes

0

Found in

6000.0.65f1

6000.3.3f1

6000.4.0b3

6000.5.0a4

Issue ID

UUM-131787

Regression

No

'EditorSceneManager.sceneCount' reports the wrong count when called by an 'EditorSceneManager.sceneClosed' event

Scripting Runtime

-

How to reproduce:

  1. Open the “SceneCountBug.zip“ project
  2. Open the “SampleScene“ and observe the Console
  3. Open the “SampleSceneExtra“
  4. Observe the Console

Actual result: “Scene Closed: 2” is logged
Expected result: “Scene Closed: 1” is logged

Reproducible in: 2023.1.0a1, 6000.0.65f1, 6000.3.3f1, 6000.4.0b3, 6000.5.0a4

Reproduced on: Windows 11 Pro (25H2)
Not reproduced on: No other environment tested

Notes:
- This also happens when an additively added scene is removed
- EditorSceneManager.sceneClosed event should be called after changing scenes. Therefore, the sceneCount should always return “1“

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.