Class XRDistanceEvaluator
Evaluates the Interactor distance from the target Interactable. Targets close to the Interactor will receive a highest score and targets far way will receive a lower score.
Implements
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Filtering
Assembly: solution.dll
Syntax
[Serializable]
public class XRDistanceEvaluator : XRTargetEvaluator, IDisposable
Properties
| Name | Description |
|---|---|
| maxDistance | The maximum distance from the Interactor.
Any target from this distance will receive a |
Methods
| Name | Description |
|---|---|
| CalculateNormalizedScore(IXRInteractor, IXRInteractable) | Calculates and returns a normalized value that represents the intention to select the given target Interactable.
|
| Reset() | (Editor Only) Unity calls this automatically when adding the evaluator to the Filter Target the first time. This function is only called in the Unity editor. Reset is most commonly used to give good default values in the Inspector. |