Description
The PivotPosition
property represents the position of the pivot point for the current selection in the map editor. This is a static property, meaning it is shared across all instances and can be accessed without creating an instance of the Selection
class.
Usage
To access the PivotPosition
property, you can directly reference it through the Selection
class. This property is useful when you need to determine or manipulate the pivot point of the current selection in the map editor.
Example
// Example of accessing the PivotPosition property
Vector3 currentPivot = Editor.MapEditor.Selection.PivotPosition;
// Example of setting the PivotPosition property
Editor.MapEditor.Selection.PivotPosition = new Vector3(10.0f, 5.0f, 3.0f);