ControllerFinder Class
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.
ControllerFinder is a base class providing simple event handling for getting/releasing MotionController Transforms.
public ref class ControllerFinder abstract : UnityEngine::MonoBehaviour, Microsoft::MixedReality::Toolkit::Input::IMixedRealitySourceStateHandler, UnityEngine::EventSystems::IEventSystemHandler
public abstract class ControllerFinder : UnityEngine.MonoBehaviour, Microsoft.MixedReality.Toolkit.Input.IMixedRealitySourceStateHandler, UnityEngine.EventSystems.IEventSystemHandler
type ControllerFinder = class
inherit MonoBehaviour
interface IMixedRealitySourceStateHandler
interface IEventSystemHandler
Public MustInherit Class ControllerFinder
Inherits MonoBehaviour
Implements IEventSystemHandler, IMixedRealitySourceStateHandler
- Inheritance
-
UnityEngine.MonoBehaviourControllerFinder
- Implements
-
IMixedRealitySourceStateHandler Unity
Engine. Event Systems. IEvent System Handler
Controller |
The Transform of the currently found controller. |
Handedness |
The handedness of the controller that should be found. |
Add |
Starts to track the passed in controller's transform, assuming it meets the previously set handedness criteria. |
On |
Override this method to act when the correct controller is actually found. This provides similar functionality to overriding AddControllerTransform, without the overhead of needing to check that handedness matches. |
On |
Override this method to act when the correct controller is actually lost. This provides similar functionality to overriding AddControllerTransform, without the overhead of needing to check that handedness matches. |
On |
|
On |
|
On |
|
On |
|
Refresh |
Remove whichever controller is currently tracked, if any, and try to add a new one based on existing sources. |
Remove |
Remove whichever controller is currently tracked, if any. |
Try |
Looks to see if the controller model already exists and registers it if so. |
Product | Versions |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |