Language
Edit

InteractableEventRoute<S,T>.GetTargets Method

Definition

Search for and return all IXRInteractableEventRouteTarget objects that should receive events from the registered IXRInteractable objects.

protected abstract void GetTargets(UnityEngine.GameObject origin, System.Collections.Generic.List<T> targets);
abstract member GetTargets : UnityEngine.GameObject * System.Collections.Generic.List<'T (requires 'T :> MixedReality.Toolkit.Experimental.IXRInteractableEventRouteTarget)> -> unit
Protected MustOverride Sub GetTargets (origin As GameObject, targets As List(Of T))

Parameters

origin
UnityEngine.GameObject

This game object will be queried for components that implement IXRInteractableEventRouteTarget.

targets
List<T>

A list that should be filled with specialized IXRInteractableEventRouteTarget component objects.

Applies to