Method OnUnlink
OnUnlink(IXRInteractor)
Called by the Target Filter when it unlinks from the given Interactor.
This is also called before the evaluator's OnDispose() for each linked Interactor.
Use this for any code cleanup for the given Interactor.
Declaration
public virtual void OnUnlink(IXRInteractor interactor)
Parameters
| Type | Name | Description |
|---|---|---|
| IXRInteractor | interactor | The Interactor being unlinked from this filter. |
Implements
Remarks
This is called even if the evaluator is disabled. You can check if the evaluator is enabled using the
enabled property.
You should not update the linked interactor list or the evaluator list in the filter, nor should you
disable or enable evaluators. This can lead to out-of-order calls to OnLink(IXRInteractor) and OnUnlink(IXRInteractor).