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
The Transform of the currently found controller.
The handedness of the controller that should be found.
Starts to track the passed in controller's transform, assuming it meets the previously set handedness criteria.
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.
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.
Remove whichever controller is currently tracked, if any, and try to add a new one based on existing sources.
Remove whichever controller is currently tracked, if any.
Looks to see if the controller model already exists and registers it if so.