Installation

The MOTAR SDK for Unity is compatible Unity Editor version 2022.3+ LTS

The MOTAR SDK for Unity is hosted on a publid NPM Registry and is installed via the Unity Package Manager as a Scoped Registry.

For a detailed guide on installing packages via a Scoped Registry, see: Detailed Scoped Registry Instructions

Name

MOTAR

URL

https://registry.hub.motar.com

Scope(s)

com.motar

Samples

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.

Device Sync

Device Sync allows users to sync their headset with the MOTAR Instance hosted by your organization.

When a user syncs their device, you can access user information via the MOTAR User Profile Class and leverage user data in your applications.

Installing Device Sync

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

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.

Avatar

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.

Learn to Fly UFO

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!

Follow the tutorial: Learn to Fly UFO - XR App Build Tutorial

Last updated