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 BaseNearInteractionTouchable

    Base class for all NearInteractionTouchables.

    Inheritance
    Object
    BaseNearInteractionTouchable
    ColliderNearInteractionTouchable
    NearInteractionTouchableSurface
    NearInteractionTouchableVolume
    Namespace: Microsoft.MixedReality.Toolkit.Input
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class BaseNearInteractionTouchable : MonoBehaviour
    Remarks

    Add this component to objects to raise touch events when in [PokePointer](xref:Microsoft.MixedReality.Toolkit.Input.PokePointer) proximity. The object layer must be included of the [PokeLayerMasks](xref:Microsoft.MixedReality.Toolkit.Input.PokePointer.PokeLayerMasks).

    Fields

    debounceThreshold

    Declaration
    protected float debounceThreshold
    Field Value
    Type Description
    Single

    eventsToReceive

    Declaration
    protected TouchableEventType eventsToReceive
    Field Value
    Type Description
    TouchableEventType

    Properties

    DebounceThreshold

    Distance in front of the surface at which you will receive a touch completed event.

    Declaration
    public float DebounceThreshold { get; set; }
    Property Value
    Type Description
    Single
    Remarks

    When the touchable is active and the pointer distance becomes greater than +DebounceThreshold (i.e. in front of the surface), then the Touch Completed event is raised and the touchable object is released by the pointer.

    EventsToReceive

    The type of event to receive.

    Declaration
    public TouchableEventType EventsToReceive { get; set; }
    Property Value
    Type Description
    TouchableEventType

    Methods

    DistanceToTouchable(Vector3, out Vector3)

    Declaration
    public abstract float DistanceToTouchable(Vector3 samplePoint, out Vector3 normal)
    Parameters
    Type Name Description
    Vector3 samplePoint
    Vector3 normal
    Returns
    Type Description
    Single

    OnValidate()

    Declaration
    protected virtual void OnValidate()
    In This Article
    Back to top Generated by DocFX