Class XRLastSelectedEvaluator
The last selected target Interactable will receive the highest normalized score.
In the moment that an Interactable is selected by any of the linked Interactors, it'll have the highest normalized
score of 1. Its normalized score will linearly decrease with time until the score reaches 0 after
maxTime seconds.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Filtering
Assembly: solution.dll
Syntax
[Serializable]
public class XRLastSelectedEvaluator : XRTargetEvaluator, IDisposable, IXRTargetEvaluatorLinkable
Properties
| Name | Description |
|---|---|
| maxTime | Any Interactable which was last selected over Max Time seconds ago will receive a normalized score of |
Methods
| Name | Description |
|---|---|
| CalculateNormalizedScore(IXRInteractor, IXRInteractable) | Calculates and returns a normalized value that represents the intention to select the given target Interactable.
|
| OnDisable() | Unity calls this automatically when the evaluator becomes disabled. Use this method for any code cleanup. This is also called when the evaluator is disposed or when its filter is destroyed or disabled. |
| OnLink(IXRInteractor) | Called by the Target Filter when it links to the given Interactor.
This is also called after the evaluator's Awake() for each already linked Interactor.
|
| 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.
|