編集

次の方法で共有


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

TargetGroupIterator()

Properties

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

ResetIterator()

Reset the target group iterator.

Events

OnAllTargetsSelected
OnTargetSelected

Explicit Interface Implementations

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

Applies to