Edit

Bagikan melalui


NearInteractionTouchableSurface Class

Definition

A near interaction object which is a flat surface and can be pressed in one direction.

public ref class NearInteractionTouchableSurface abstract : Microsoft::MixedReality::Toolkit::Input::BaseNearInteractionTouchable
public abstract class NearInteractionTouchableSurface : Microsoft.MixedReality.Toolkit.Input.BaseNearInteractionTouchable
type NearInteractionTouchableSurface = class
    inherit BaseNearInteractionTouchable
Public MustInherit Class NearInteractionTouchableSurface
Inherits BaseNearInteractionTouchable
Inheritance
UnityEngine.MonoBehaviour
NearInteractionTouchableSurface
Derived

Constructors

NearInteractionTouchableSurface()

Fields

debounceThreshold (Inherited from BaseNearInteractionTouchable)
eventsToReceive (Inherited from BaseNearInteractionTouchable)

Properties

Bounds

Bounds specify where touchable interactions can occur. They are local bounds on the plane specified by the LocalCenter and LocalPressDirection (as a normal).

DebounceThreshold

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

(Inherited from BaseNearInteractionTouchable)
EventsToReceive

The type of event to receive.

(Inherited from BaseNearInteractionTouchable)
LocalCenter

The local center point of interaction. This may be based on a collider position or Unity UI RectTransform.

LocalPressDirection

This is the direction that a user will press on this element.

Methods

DistanceToTouchable(Vector3, Vector3) (Inherited from BaseNearInteractionTouchable)
OnValidate() (Inherited from BaseNearInteractionTouchable)

Applies to