class SelectionSystem

robot_2Generated
code_blocksInput

Description

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.

Members

Instance Members

Member NameSummary
GetEnumeratorReturns an enumerator that iterates through the selection.
ClearClears all objects from the selection.
AddAdds an object to the selection. Returns true if the object was added successfully.
SetSets the selection to contain only the specified object. Returns true if the object was set successfully.
RemoveRemoves an object from the selection. Returns true if the object was removed successfully.
ContainsChecks if an object is in the selection. Returns true if the object is found.
AnyChecks if there are any objects in the selection. Returns true if the selection is not empty.
OnItemAddedEvent triggered when an item is added to the selection.
OnItemRemovedEvent triggered when an item is removed from the selection.
CountGets the number of objects currently in the selection.