Modifica

Condividi tramite


InteractableReceiverList Class

Definition

An example of building an Interactable receiver that uses built-in receivers that extend ReceiverBase

public ref class InteractableReceiverList : Microsoft::MixedReality::Toolkit::UI::ReceiverBaseMonoBehavior
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/InteractableReceiverList")]
public class InteractableReceiverList : Microsoft.MixedReality.Toolkit.UI.ReceiverBaseMonoBehavior
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/InteractableReceiverList")>]
type InteractableReceiverList = class
    inherit ReceiverBaseMonoBehavior
Public Class InteractableReceiverList
Inherits ReceiverBaseMonoBehavior
Inheritance
UnityEngine.MonoBehaviour
InteractableReceiverList
Attributes
UnityEngine.AddComponentMenuAttribute

Constructors

InteractableReceiverList()

Fields

Events

List of events added to this interactable

Interactable

Interactable to target

(Inherited from ReceiverBaseMonoBehavior)
InteractableSearchScope

directions to search for Interactable component in transform hierarchy if none assigned

(Inherited from ReceiverBaseMonoBehavior)
lastState (Inherited from ReceiverBaseMonoBehavior)

Methods

AddInteractable(Interactable)

Add an interactable and add it as a handler

(Inherited from ReceiverBaseMonoBehavior)
Awake()
OnClick(InteractableStates, Interactable, IMixedRealityPointer)

captures click events

OnDisable()

Remove itself as a handler

(Inherited from ReceiverBaseMonoBehavior)
OnEnable()

look for an Interactable if not assigned

(Inherited from ReceiverBaseMonoBehavior)
OnStateChange(InteractableStates, Interactable)

.A state has changed

OnVoiceCommand(InteractableStates, Interactable, String, Int32, Int32)

captures voice commands

SetupEvents()

starts the event system

Update() (Inherited from ReceiverBaseMonoBehavior)

Applies to