Selection Manager
This component simply exposes the selection changed event to the Unity Inspector and a selection of the common selection funcitons.
Selection Manager is a .NET IColleciton of SelectableObjects ... this means you can iterate over it to iterate over the selected objects
foreach(var selected in selectionManager)
{
Debug.Log(selected.name + " is selected");
}
Type | Name | Notes |
---|---|---|
int | Count | Gets the count of currently selected objects |
bool | IsReadOnly | Always returns true |
Occurs when the list of selected object's changes
This simply operates the API.Selection interface. The interface its self has far more useful funcitons such as searching of selected objects and more.
Adds the object to the selection
Adds multiple objects to the selection
Removes an object from selection
Removes all matching items from the selection
Clears all items from the selection
Returns true if the indicated item is in the selection
Copies the selection to a target array
Used to iterate over the selected items
Last modified 1yr ago