Language
Edit

InteractableChildrenEventRoute<S,T>.GetTargets Method

Definition

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

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

Parameters

origin
UnityEngine.GameObject

The game object whose children will be queried for components that implement IXRInteractableEventRouteTarget.

targets
List<T>

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

Applies to