The Gizmo.Select
method is a static method used to manage the selection state of gizmos within the Sandbox environment. This method allows you to specify whether unselecting and multi-selecting of gizmos is permitted.
The Gizmo.Select
method is a static method used to manage the selection state of gizmos within the Sandbox environment. This method allows you to specify whether unselecting and multi-selecting of gizmos is permitted.
To use the Gizmo.Select
method, call it with the appropriate boolean parameters to control the selection behavior:
allowUnselect
: A boolean value indicating whether the current selection can be unselected. Set to true
to allow unselecting, or false
to prevent it.allowMultiSelect
: A boolean value indicating whether multiple gizmos can be selected simultaneously. Set to true
to enable multi-selection, or false
to restrict selection to a single gizmo.// Example usage of Gizmo.Select method // Allow unselecting and multi-selecting of gizmos Gizmo.Select(true, true); // Allow unselecting but restrict to single selection Gizmo.Select(true, false); // Restrict unselecting and allow multi-selection Gizmo.Select(false, true); // Restrict both unselecting and multi-selection Gizmo.Select(false, false);