Installation
Last updated
Last updated
The MOTAR SDK for Unity is hosted on a publid NPM Registry and is installed via the Unity Package Manager as a Scoped Registry.
Name
MOTAR
URL
https://registry.hub.motar.com
Scope(s)
com.motar
The MOTAR SDK for Unity includes some sample packages in the Samples section under the MOTAR entry in the Package Manager. These include:
Device Sync
Avatar
Learn to Fly UFO (URP Only)
To install these samples:
Select the MOTAR Package in the Package Manger
Click "Samples"
Click "Import" on the samples you would like to install.
Details about these sample packages are listed in the sections below.
Required sample!
Device Sync is required if your application will sync with the MOTAR Instance hosted by your organization.
Device Sync allows users to sync their headset with the MOTAR Instance hosted by your organization.
Device Sync is a Sample package located in the Dynepic/MOTAR SDK registry.
After installing the SDK, go to the Package Manager
Click the Dynepic / MOTAR SDK package entry
Click Samples and locate Device Sync
Click Install
In your project you should now see a Samples folder containing the MOTAR SDK Device Sync files.
After device sync imports, the sample will be installed in
Assets\Samples\MOTAR SDK\<version>\Device Sync
Included with the scripts is the scene MOTARDeviceSyncAndAuthentication
If you don't have TextmeshPro installed in your project, it will install automatically request an install when opening the Sync scene.
From your project window, navigate to Assets -> Samples -> MOTAR SDK -> [version #] -> Device Sync -> Scenes.
Double click and load “MOTARDeviceSyncAndAuthentication”.
The MOTARDeviceSyncAndAuthentication scene allows users to log into their MOTAR accounts and authorize the headset.
The scene is automatically inserted into your Unity Build settings Scenes as the FIRST (0) scene.
Generally, you should authenticate your users before they enter your application. If your app requires a different scene to be the first launched, simply move the MOTARDeviceSyncAndAuthentication to the required order.
Moving MOTARDeviceSyncAndAuthentication means your application will not be authenticated or synced with MOTAR until the scene is launched. Attempts to access user information will be impacted.
The MOTAR Avatar sample makes development even easier with out-of-the-box XR features.
With the Avatar sample package you get:
MOTAR_Player - This XR Rig prefab is wired up ready for you applications. Show user's name, profile image. Locomotion, Interaction, and Camera fading are all built in and accessible.
MOTAR_TeleportAnchor - Add teleportion anchors to your scenes
AvatarDemoScene - This demo scene shows you examples of the MOTAR Avatar, object interactions, UI, and Locomotion.
The Learn to Fly UFO sample package is a fun and interactive way to explore the features of the MOTAR SDK. Whether you're new to Unity or just curious, this sample project guides you through the basics of integrating MOTAR Core and Avatar features from start to finish. No prior experience required—just dive in and start experimenting!
The UFO project is meant for Unity beginners to see how easy it can be to create an app using the MOTAR SDK for Unity.
Follow the tutorial: Learn to Fly UFO - XR App Build Tutorial
When a user syncs their device, you can access user information via the and leverage user data in your applications.