Прочитај на енглеском Уреди

Делите путем


Spatial Mouse— MRTK3

The MRTK Spatial Mouse Interactor powers a spatial mouse, with similar behavior to the HoloLens 2 system mouse. The interactor is an implementation of XRRayInteractor and IRayInteractor that provides extra functionality to handle mouse movement, clicking, and scrolling.

How to use the spatial mouse

By default the MRTK Spatial Mouse Interactor isn't included on the MRTK XR Rig. In order to enable the spatial mouse, add the MRTK Spatial Mouse Controller prefab asset under MRTK XR Rig > Camera Offset. The action map for the MRTK Spatial Mouse is already included in MRTK Default Input Actions. Ensure that your mouse is paired with your device. Once the MRTK Spatial Mouse Controller has been added to the rig, the spatial mouse appears in the scene.

Check out the Spatial Mouse Sample scene for an example.

Напомена

In editor, you may need to use the Esc key to exit so that your mouse no longer controls the spatial mouse in the scene.

Важно

This is an experimental feature. This class is early in the cycle, it has been labeled as experimental to indicate that it is still evolving, and subject to change over time. Parts of the MRTK, such as this class, appear to have a lot of value even if the details haven not fully been fleshed out. For these types of features, we want the community to see them and get value out of them early enough so to provide feedback.