Class BaseNearInteractionTouchable
Base class for all NearInteractionTouchables.
Inheritance
BaseNearInteractionTouchable
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 |
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()