MOTAR
  • About
  • Welcome
    • Get a License
    • Installation & Tutorial Files
    • Commercial Installation & Setup Tutorial
      • Learn to Fly UFO - XR App Build Tutorial
        • Prerequisites
        • Install Sample Project
        • Set Up the Scenes
        • Set Up XR Controls
        • Configure the MOTAR SDK
        • Build the Application
      • Advanced Deployment Guide
      • Get MOTAR 3D
    • Government Installation & Setup Tutorial
      • Learn to Fly UFO - XR App Build Tutorial
        • Prerequisites
        • Install Sample Project
        • Set Up the Scenes
        • Set Up XR Controls
        • Configure the MOTAR SDK
        • Build the Application
      • Advanced Deployment Guide
      • Get MOTAR 3D
  • RELEASE NOTES
    • MOTAR 3.0
    • MOTAR 3.0 Beta Hotfix
    • MOTAR 3.0 (Beta)
  • HOW TO
    • MOTAR Core Services
      • Using MOTAR Hub
        • How to Discover Listings
        • How to Download Listings
        • How to Use the Model Inspector
        • How to View MIAB Compatible Listings
        • How to Use Version Tree in Hub
        • How to Launch Apps
      • Using MOTAR Studio
        • How to Manage Each Listing Type
          • App | Listing Type
          • Models | Listing Type
          • Video | Listing Type
          • Audio | Listing Type
          • Image | Listing Type
          • Document | Listing Type
        • How to Manage Listing Permissions
        • How to Use State Manager
        • About MOTAR Digital Thread
          • Digital Thread Iconology
          • New Version | Digital Thread
          • Remix | Digital Thread
          • Authorizing and Certifying Listings
        • MOTAR Secure File Upload & Scanning
      • Using MOTAR Devices
        • How to Sync a Device to MOTAR Web
      • Using MOTAR Admin On A Commercial License
        • Owning Company (Self Managed) | Commercial
        • How to Manage Partners | Commercial
          • How to Add Partners | Commercial
        • How to Manage Users | Commercial
          • How to Add Users | Commercial
          • How to Add User to Studio Group | Commercial
        • How to Manage Studio Groups | Commercial
          • How to Add Studio Groups
      • Using MOTAR Admin On A Government License
        • Owning Company (Self Managed) | Government
        • How to Manage Access | Government
          • How to Create A User | Government
          • How to Add User to Studio Group | Government
          • How to Manage Users | Government
        • How to Manage Studio Groups | Government
          • How to Add Studio Groups | Government
        • How to Manage Contractors | Government
          • How to Add Contractors | Government
      • Using MOTAR SDK
        • MOTAR SDK for Unity
          • Installation
            • Detailed Scoped Registry Instructions
          • Configuration
          • MOTAR Classes
      • Using MOTAR Holodeck
      • Installing and Using MOTAR 3D
      • Backup & Restore Data
      • Updating MOTAR Installation
  • Support
    • Contact Us!
Powered by GitBook
On this page
  • Samples
  • Device Sync
  • Avatar
  • Learn to Fly UFO
  1. HOW TO
  2. MOTAR Core Services
  3. Using MOTAR SDK
  4. MOTAR SDK for Unity

Installation

PreviousMOTAR SDK for UnityNextDetailed Scoped Registry Instructions

Last updated 1 month ago

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

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.

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

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.

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!

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.

MOTAR User Profile Class