EditorSceneManager.activeSceneChangedInEditMode

Switch to Manual

Parameters

valuePrevious active Scene and the new active Scene.

Description

Subscribe to this event to get notified when the active Scene has changed in Edit mode in the Editor.

This event is only sent in Edit mode. If the event is only needed during Play mode then use SceneManager.activeSceneChanged.