Vixen
02b45cc4
csharp
public interface IActiveScene

Which scene the editor is showing right now.

Read the guide page for this →

Remarks

Not the same question as "which scene is open". An editor with a prefab open is inspecting the prefab and showing the level behind it; a panel that counts entities has to count the one in front of the user, or pressing Refresh in a prefab reports the level.

⚠ A contract rather than a published SceneDocument, because the answer moves. A module handed the document at activation would hold the one that was open when it loaded — and would go on counting it after the user opened a second scene. This is asked every time it is needed.

Fields and properties (1)

  • SceneDocument Current

    The scene the editor is showing, which is never null once a project is open.

Used by (3)

  • DiagnosticsModuleVixen.Editor.Diagnostics
  • EditorApplicationVixen.Editor.App
  • ShownSceneVixen.Editor.App