Method Process
Process(IXRInteractor, List<IXRInteractable>, List<IXRInteractable>)
Called by the linked Interactor to filter the Interactables that it could possibly interact with this frame. Implement your custom logic to filter the Interactable candidates in this method.
Declaration
public abstract void Process(IXRInteractor interactor, List<IXRInteractable> targets, List<IXRInteractable> results)
Parameters
| Type | Name | Description |
|---|---|---|
| IXRInteractor | interactor | The linked Interactor whose Interactable candidates (or targets) are being filtered. |
| List<IXRInteractable> | targets | The read only list of candidate Interactables to filter. This list should not be modified. |
| List<IXRInteractable> | results | The results list to populate with the filtered results. This list should be sorted by priority (with highest priority first). |
Implements
Remarks
It's recommended to call this from an implementation of GetValidTargets(List<IXRInteractable>).