Language
Edit

TargetGroupIterator Class

Definition

Iterates through a given set of targets based on a required TargetGroupCreator.

public ref class TargetGroupIterator : UnityEngine::MonoBehaviour, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointerHandler, UnityEngine::EventSystems::IEventSystemHandler
[UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/TargetGroupIterator")]
[UnityEngine.RequireComponent(typeof(Microsoft.MixedReality.Toolkit.Examples.Demos.EyeTracking.TargetGroupCreatorRadial))]
public class TargetGroupIterator : UnityEngine.MonoBehaviour, Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointerHandler, UnityEngine.EventSystems.IEventSystemHandler
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/TargetGroupIterator")>]
[<UnityEngine.RequireComponent(typeof(Microsoft.MixedReality.Toolkit.Examples.Demos.EyeTracking.TargetGroupCreatorRadial))>]
type TargetGroupIterator = class
    inherit MonoBehaviour
    interface IMixedRealityPointerHandler
    interface IEventSystemHandler
Public Class TargetGroupIterator
Inherits MonoBehaviour
Implements IEventSystemHandler, IMixedRealityPointerHandler
Inheritance
UnityEngine.MonoBehaviour
TargetGroupIterator
Attributes
UnityEngine.AddComponentMenuAttribute UnityEngine.RequireComponentAttribute
Implements
IMixedRealityPointerHandler UnityEngine.EventSystems.IEventSystemHandler

Constructors

Name Description
TargetGroupIterator()

Properties

Name Description
CurrentTarget

Property which returns the current query target.

CurrentTargetIsValid

Property which returns whether the current query target is valid.

HighlightColor

Property that returns the highlight color.

PreviousTarget

Property which returns the previous query target or 'null' in case there is no previous target.

Methods

Name Description
ResetIterator()

Reset the target group iterator.

Events

Name Description
OnAllTargetsSelected
OnTargetSelected

Explicit Interface Implementations

Name Description
IMixedRealityPointerHandler.OnPointerClicked(MixedRealityPointerEventData)
IMixedRealityPointerHandler.OnPointerDown(MixedRealityPointerEventData)
IMixedRealityPointerHandler.OnPointerDragged(MixedRealityPointerEventData)
IMixedRealityPointerHandler.OnPointerUp(MixedRealityPointerEventData)

Applies to