mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class BaseNearInteractionTouchable

    Base class for all NearInteractionTouchables.

    Inheritance
    Object
    BaseNearInteractionTouchable
    ColliderNearInteractionTouchable
    NearInteractionTouchableSurface
    NearInteractionTouchableVolume
    Implements
    MonoBehaviour
    Namespace: Microsoft.MixedReality.Toolkit.Input
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class BaseNearInteractionTouchable : MonoBehaviour, 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

    debounceThreshold

    Declaration
    protected float debounceThreshold
    Field Value
    Type Description
    Single

    eventsToReceive

    Declaration
    protected TouchableEventType eventsToReceive
    Field Value
    Type Description
    TouchableEventType

    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.

    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

    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

    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()

    OnValidate()

    Declaration
    protected virtual void OnValidate()

    Implements

    MonoBehaviour
    In This Article
    • Fields
      • debounceThreshold
      • debounceThreshold
      • eventsToReceive
      • eventsToReceive
    • Properties
      • DebounceThreshold
      • DebounceThreshold
      • EventsToReceive
      • EventsToReceive
    • Methods
      • DistanceToTouchable(Vector3, out Vector3)
      • DistanceToTouchable(Vector3, out Vector3)
      • OnValidate()
      • OnValidate()
    • Implements
    Back to top Generated by DocFX