We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class InteractableOnTouchReceiver

    A basic touch event receiver for detecting Physical Touch state changes in the Interactable When the physical touch states change, these events are triggered.

    Inheritance
    Object
    ReceiverBase
    InteractableOnTouchReceiver
    Inherited Members
    ReceiverBase.Name
    ReceiverBase.HideUnityEvents
    ReceiverBase.uEvent
    ReceiverBase.Event
    ReceiverBase.Host
    ReceiverBase.OnVoiceCommand(InteractableStates, Interactable, String, Int32, Int32)
    ReceiverBase.OnClick(InteractableStates, Interactable, IMixedRealityPointer)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.UI
    Assembly: cs.temp.dll.dll
    Syntax
    public class InteractableOnTouchReceiver : ReceiverBase

    Constructors

    InteractableOnTouchReceiver()

    Receiver for raising touch begin and end events

    Declaration
    public InteractableOnTouchReceiver()

    InteractableOnTouchReceiver(UnityEvent)

    Receiver for raising touch begin and end events

    Declaration
    public InteractableOnTouchReceiver(UnityEvent ev)
    Parameters
    Type Name Description
    UnityEvent ev

    Fields

    OnTouchEnd

    Invoked when touch has left the object

    Declaration
    public UnityEvent OnTouchEnd
    Field Value
    Type Description
    UnityEvent

    Properties

    OnTouchStart

    Invoked when touch begins

    Declaration
    public UnityEvent OnTouchStart { get; }
    Property Value
    Type Description
    UnityEvent

    Methods

    OnUpdate(InteractableStates, Interactable)

    The state has changed

    Declaration
    public override void OnUpdate(InteractableStates state, Interactable source)
    Parameters
    Type Name Description
    InteractableStates state
    Interactable source
    Overrides
    ReceiverBase.OnUpdate(InteractableStates, Interactable)
    In This Article
    Back to top Generated by DocFX