Language
Edit

FuzzyGazeInteractor.GetValidTargets(List<IXRInteractable>) Method

Definition

UnityEngine.XR.Interaction.Toolkit.XRRayInteractor.GetValidTargets(System.Collections.Generic.List{UnityEngine.XR.Interaction.Toolkit.IXRInteractable})
public override void GetValidTargets(System.Collections.Generic.List<UnityEngine.XR.Interaction.Toolkit.IXRInteractable> targets);
override this.GetValidTargets : System.Collections.Generic.List<UnityEngine.XR.Interaction.Toolkit.IXRInteractable> -> unit
Public Overrides Sub GetValidTargets (targets As List(Of IXRInteractable))

Parameters

targets
List<UnityEngine.XR.Interaction.Toolkit.IXRInteractable>

Remarks

This differs from the underlying XRRayInteractor implementation because the best valid target is not always the closest one with the fuzzy gaze scenario. This makes the XRRayInteractor's optimization of invalidating targets which are further from the user than another UI or invalid target (for example, an object partially covered by a wall or UI element) not applicable for this scenario. Thus this implementation doesn't call base.GetValidTargets at any point.

Applies to