The SelectMode
property of the Editor.MapEditor.Selection
class represents the current selection mode within the map editor. This mode determines the type of elements that can be selected, such as meshes or objects.
The SelectMode
property of the Editor.MapEditor.Selection
class represents the current selection mode within the map editor. This mode determines the type of elements that can be selected, such as meshes or objects.
To access or modify the current selection mode, use the SelectMode
property. This property is static, meaning it is shared across all instances of the Selection
class.
Example usage:
Editor.MapEditor.Selection.SelectMode = Editor.MapEditor.SelectMode.Meshes;
This sets the selection mode to target meshes within the map editor.
// Set the selection mode to Meshes Editor.MapEditor.Selection.SelectMode = Editor.MapEditor.SelectMode.Meshes; // Check the current selection mode var currentMode = Editor.MapEditor.Selection.SelectMode; if (currentMode == Editor.MapEditor.SelectMode.Objects) { // Perform actions specific to object selection }