The All
property provides a static list of all active HammerSceneEditorSession
instances. This property is useful for accessing and managing all current editor sessions within the map editor environment.
The All
property provides a static list of all active HammerSceneEditorSession
instances. This property is useful for accessing and managing all current editor sessions within the map editor environment.
Use the All
property to retrieve a list of all active HammerSceneEditorSession
instances. This can be particularly useful when you need to iterate over all sessions to perform batch operations or to gather information about the current state of each session.
// Example of accessing all HammerSceneEditorSession instances List<Editor.MapEditor.HammerSceneEditorSession> allSessions = Editor.MapEditor.HammerSceneEditorSession.All; foreach (var session in allSessions) { // Perform operations on each session session.Focus(); if (session.HasUnsavedChanges) { // Handle unsaved changes } }