ISelector exposes two events. An Interactor listens to them to start and end a selection.public interface ISelector
{
event Action WhenSelected;
event Action WhenUnselected;
}
ISelector implementations, among others. Each one supplies a different way for the user to confirm a selection.| Implementation | Selection mechanism |
|---|---|
IndexPinchSelector | A hand tracking pinch between the index finger and thumb. |
ControllerSelector | A controller button press. |
ActiveStateSelector | An IActiveState becoming active, which routes active state logic into a selection. |
VirtualSelector | A Select() or Unselect() call from your own code, or a flag toggled in the Inspector. |
ISelector. Any other references an Interactor requires are configured separately.ActiveStateSelector converts into selections, see Active State.