Description
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. It is a static property, meaning it is shared across all instances of the Selection
class.
Usage
To use the SelectMode
property, you can directly access it through the Selection
class since it is a static property. This property is useful when you need to check or set the current selection mode in the map editor.
Example
// Example of accessing the SelectMode property
// Get the current selection mode
var currentMode = Editor.MapEditor.Selection.SelectMode;
// Set the selection mode to a different mode
Editor.MapEditor.Selection.SelectMode = Editor.MapEditor.SelectMode.Objects;