The SelectionSystem class in the Sandbox namespace provides a mechanism to manage a collection of selected objects. It offers methods to add, remove, and check for objects within the selection, as well as events to handle changes in the selection.
The SelectionSystem class in the Sandbox namespace provides a mechanism to manage a collection of selected objects. It offers methods to add, remove, and check for objects within the selection, as well as events to handle changes in the selection.
Member Name | Summary |
---|---|
GetEnumerator | Returns an enumerator that iterates through the selected objects. |
Clear | Clears all objects from the selection. |
Add | Adds an object to the selection. Returns true if the object was added successfully. |
Set | Sets the selection to contain only the specified object. Returns true if the object was set successfully. |
Remove | Removes an object from the selection. Returns true if the object was removed successfully. |
Contains | Checks if an object is in the selection. Returns true if the object is found. |
Any | Determines if there are any objects in the selection. Returns true if the selection is not empty. |
OnItemAdded | Event triggered when an item is added to the selection. |
OnItemRemoved | Event triggered when an item is removed from the selection. |
Count | Gets the number of objects currently in the selection. |