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
: Set to true
if you want to allow gizmos to be unselected when clicked again. Set to false
to prevent unselecting.allowMultiSelect
: Set to true
if you want to allow multiple gizmos to be selected at the same time. Set to false
to restrict selection to a single gizmo at a time.// 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);