Skip to main content
Version: 12 Dec 2024

Samples Scenes

This guide provides and overview of the currently available sample scenes for the MRTK3 Magic Leap 2 plugin.

Prerequisites

Install the Samples

  1. Go to Window > Package Manager and find the Magic Leap MRTK3 package installed in your project.
  2. In the package inspector view, select the Samples tab and click the Import button next to the desired samples to import them into the project.

MRTK3 Samples Overview

Hand and Controller Interaction Examples

This simple scene demonstrates a working example on the Magic Leap 2, with both hand and Magic Leap Controller interactions.

Game View of the MRTK3 ML2 hand tracking sample

Eye Tracking Examples

This simple scene demonstrates a working example on the Magic Leap 2, with Eye Tracking. To enable Eye Tracking, please go to Player Settings > MRTK3 > Magic Leap Settings, to enable both Auto Request and EYE_TRACKING, to handle runtime permission config.

Game View of the MRTK3 ML2 eye tracking sample

Spatial Awareness Examples

This simple scene demonstrates a working example on the Magic Leap 2, with Spatial Mapping. To enable Spatial Mapping, please go to Player Settings > MRTK3 > Magic Leap Settings, to enable both Auto Request and SPATIAL_MAPPING, to handle runtime permission config.

Game View of the MRTK3 ML2 spatial awareness sample

Keyword Recognition Examples

This Example scene demonstrates keyword recognition. For Voice Input to work, users need to enable Voice Input on their Magic Leap 2 Device inside the System Settings application. enable voice input, please go to Player Settings > MRTK3 > Magic Leap Settings, to enable both Auto Request and VOICE_INPUT, to handle runtime permission config.

Game View of the MRTK3 ML2 Keyword Recognition sample

Global and Segmented Dimmer Examples

This Example scene demonstrates the global and segmented dimmer. Note this feature only works when deployed to a Magic Leap 2 device.

Game View of the MRTK3 ML2 Global and Segmented Dimmer sample