Heathen KB
Become a GitHub Sponsor
Join our Discord
Find us on the Web
in the Unity Asset Store
Search…
General
Introduction
Guides
Asset Developers
Hel House
🔎
What is Hel House
⚔
Solutions
💶
Pricing
Heathen Engineering
🤷
What is Heathen
Licensing
General Info
Art Assets
PhysKit
Steamworks
System Core
User eXperience [UX]
Installation
Learning
API
Components
Action Hold
Border Handle
Button Cursor State
Change Cursor Default State
Command Director
Cursor Animator
Drag Item
Drop Container
Key Hold
Mouse Over Cursor State
Move Handle
Play On Click
Play On Demand
Play On Down
Play On Enter
Play On Exit
Play On Up
Pointer Hold
Scenes Manager
Selectable Object
Selection Manager
Tooltip Trigger
Tooltip Window Controller
Window
Window Clamping Bounds
Window Focus Change Event Data
Objects
Enums
Codex
Introduction
Irish
Powered By
GitBook
Selection Manager
Introduction
Part of the
Selection System
of the UX Complete asset
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"
);
}
Definition
Fields and Attributes
Type
Name
Notes
int
Count
Gets the count of currently selected objects
bool
IsReadOnly
Always returns true
Events
Selection Changed
Occurs when the list of selected object's changes
Funcitons
This simply operates the
API.Selection
interface. The interface its self has far more useful funcitons such as searching of selected objects and more.
You are strongly encuraged to use
API.Selection
directly.
Add
Adds the object to the selection
Add Range
Adds multiple objects to the selection
Remove
Removes an object from selection
Remove All
Removes all matching items from the selection
Clear
Clears all items from the selection
Contains
Returns true if the indicated item is in the selection
Copy To
Copies the selection to a target array
Get Enumerator
Used to iterate over the selected items
Previous
Selectable Object
Next
Tooltip Trigger
Last modified
9mo ago
Copy link
Outline
Introduction
Definition
Fields and Attributes
Events
Funcitons