MRTK3 Template Project
The Mixed Reality Toolkit 3 (MRTK3) is a collection of scripts and components that make it easy to build XR applications for a variety of platforms. We provide a template project for the MRTK3 with Neon XR already integrated to kickstart your development.
The template contains several demo scenes that showcase how to use Neon XR with MRTK3, including e.g. the following scenes demonstrating gaze-based interaction:
Running the Template Project
If you just want to try out the demo scenes included in the template project in action, you can download and install a pre-built APK. The APKs a platform-specific and we currently only offer one for the Pico 4 headset. You can download it at this link:
Pico 4 - MRTK3 Template Project
To install it, simply open the link in the browser of your Pico 4 headset, download the file and open it.
Building the Project
To get started use our fork of the MRTK repository, which contains the template project.
Clone the repository using e.g. this command:
git clone git@github.com:pupil-labs/MixedRealityToolkit-Unity.git
git clone git@github.com:pupil-labs/MixedRealityToolkit-Unity.git
Depending on your target platform the required setup may differ slightly as some platforms require e.g. specific SDKs. Here we provide instructions for the Pico 4 as well as generic instructions that can be adapted to other platforms.
Pico 4
Follow these steps to setup the template project for the Pico 4 headset:
- Checkout the
neon-pico
branch which is setup to use the PICO Unity Integration SDK.git checkout neon-pico
git checkout neon-pico
- Download the PICO Unity Integration SDK here and extract it to the root folder of the MRTK3 repository. This should create a folder called
PICO Unity Integration SDK 240
or similar with the version number at the end. Remove the version from the folder name, such that the folder is calledPICO Unity Integration SDK
. - Open the Unity sample project located in
UnityProjects\MRTKDevTemplate
using Unity Hub. - When the project loads for the first time, a
PXR SDK Settings
window will pop up. ClickApply
. Once finished clickClose
. - Create default Addressables settings.
- Select
Window -> Asset Management -> Addressables -> Groups
. - Click on
Create Addressables Settings
. - If legacy bundles are detected click on
Ignore
.
- Select
- From the menu, select
Pupil Labs -> Addressables -> Import Groups
. After this step, theNeonXR Group
should appear in theAddressables Groups
window (you can open this window again following step 2.1). - In the
Addressable Groups
window, selectBuild -> New Build -> Default Build Script
. - Import
TMP resources
by clickingWindow -> TextMeshPro -> Import TMP Essential Resources
. In the opening window, keep everything selected and clickImport
.
Additional Build Settings
The following settings are required to build the project for the Pico 4 headset:
- Click
Edit->Project Settings
. - In the
XR Plug-in Management
section, setPlug-in Providers
toPICO
. No other options should be selected. - Set your App ID in
PXR_SDK -> Platform Settings
.
Other Platforms
Adapt the following steps to setup the template project for other platforms:
- Checkout the
neon
branch.git checkout neon
git checkout neon
- Open the Unity sample project located in
UnityProjects\MRTKDevTemplate
using Unity Hub. - Create default Addressables settings.
- Select
Window -> Asset Management -> Addressables -> Groups
. - Click on
Create Addressables Settings
. - If legacy bundles are detected click on
Ignore
.
- Select
- From the menu, select
Pupil Labs -> Addressables -> Import Groups
. After this step, theNeonXR Group
should appear in theAddressables Groups
window (you can open this window again following step 2.1). - In the
Addressable Groups
window, selectBuild -> New Build -> Default Build Script
. - Import
TMP resources
by clickingWindow -> TextMeshPro -> Import TMP Essential Resources
. In the opening window, keep everything selected and clickImport
.
Usage
All the pre-configured sampe scenes that work with Neon XR start with a PL_
prefix, e.g. PL_HandInteractionExamples
. Check them out!