NearInteractionModeDetector Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A ProximityDetector that will check if any near interactor is selecting an interactable. If a near interactor is selecting an interactable, the specified ModeOnDetection will be marked as being detected.
[UnityEngine.AddComponentMenu("MRTK/Input/Near Interaction Mode Detector")]
public class NearInteractionModeDetector : MixedReality.Toolkit.Input.ProximityDetector
[<UnityEngine.AddComponentMenu("MRTK/Input/Near Interaction Mode Detector")>]
type NearInteractionModeDetector = class
inherit ProximityDetector
Public Class NearInteractionModeDetector
Inherits ProximityDetector
- Inheritance
- Attributes
-
UnityEngine.AddComponentMenuAttribute
Constructors
| Name | Description |
|---|---|
| NearInteractionModeDetector() | |
Properties
| Name | Description |
|---|---|
| DetectedColliders |
A collection of colliders currently detected by this proximity detector. Only colliders associated with IXRInteractables are included. (Inherited from ProximityDetector) |
| InteractionManager |
The interaction manager to use to query interactors and their registration events. Currently protected internal, may be exposed in a future update. (Inherited from ProximityDetector) |
| ModeOnDetection |
The interaction mode to be toggled if when the detector detects the appropriate game state (Inherited from ProximityDetector) |
Methods
| Name | Description |
|---|---|
| GetControllers() |
Get a list of the UnityEngine.GameObject instances which represent the controllers that this interaction mode detector has jurisdiction over. (Inherited from ProximityDetector) |
| IsModeDetected() | UnityEngine.MonoBehaviour.IsModeDetected |