The EditorSession
property provides access to the HammerSceneEditorSession
associated with the MapWorld
. This session is used to manage and interact with the Hammer editor environment for the current map world.
The EditorSession
property provides access to the HammerSceneEditorSession
associated with the MapWorld
. This session is used to manage and interact with the Hammer editor environment for the current map world.
Use the EditorSession
property to retrieve the current Hammer editor session for a MapWorld
instance. This allows you to perform operations related to map editing, such as modifying entities, adjusting properties, and managing the scene within the Hammer editor.
// Example of accessing the EditorSession property MapWorld mapWorld = new MapWorld(); Editor.MapEditor.HammerSceneEditorSession editorSession = mapWorld.EditorSession; // Use the editorSession to perform operations // For example, you might want to start a new editing session or modify map elements editorSession.StartSession(); // Perform other operations with editorSession as needed