Show / Hide Table of Contents

    Class BaseNearInteractionTouchable

    Base class for all NearInteractionTouchables.

    Inheritance
    Object
    BaseNearInteractionTouchable
    ColliderNearInteractionTouchable
    NearInteractionTouchableUnityUI
    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 proximity. The object layer must be included of the PokeLayerMasks.

    Fields

    debounceThreshold

    Declaration
    protected float debounceThreshold
    Field Value
    Type Description
    Single

    eventsToReceive

    Declaration
    protected TouchableEventType eventsToReceive
    Field Value
    Type Description
    TouchableEventType

    pokeThreshold

    Declaration
    protected float pokeThreshold
    Field Value
    Type Description
    Single

    Properties

    DebounceThreshold

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

    Declaration
    public float DebounceThreshold { get; }
    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

    PokeThreshold

    Distance behind the surface at which the touchable becomes active.

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

    When the pointer distance to the touchable object becomes less than -PokeThreshold (i.e. behind the surface), then the Touch Started event is raised and the touchable object becomes tracked by the pointer.

    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 void OnValidate()
    Back to top Generated by DocFX