Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel6
outlinefalse
typelist
printablefalse

Overview

We will create a new Unity project and import the Motive Lightweight SDK. We will configure the sample VR scene. On Launch Server will set up an Application, a Launch Module and create a Launch Code. We provision the Motive Launch Pad app on Launch Server. Then use the Launch Code in the Launch Pad app to start the sample VR scene. Finally, we view the data which was captured on Launch Server.

LSDK Sample VR App Connected to Launch Server and using Launch Pad.mp4

Unity

  1. Create a new, empty 3D Unity project

...

  1. Go to Build Settings and select Android as the platform

...

  1. Import the Motive LSDK unity package

...

  1. Search for and then open the scene called LSDK Sample VR

...

...

  1. Open the Package Manager

...

  1. Click the + button and select Add package from git URL... and enter:

    1. com.unity.nuget.newtonsoft-json@2.0.0

  2. Next to the + button, click on Packages and ensure Packages: Unity Registry is selected

...

  1. Search for XR Plugin Management and install it

...

  1. Install XR Interaction Toolkit

...

  1. -this may require a restart of Unity

...

  1. When Unity restarts, in the Package Manager go to XR Interaction Toolkit again

...

  1. Expand Samples and click Import next to Starter Assets. We are using these assets for this simple example. You can use your own implementations instead.

  2. Close the Package Manager

...

  1. Click on XR Origin in the Hierarchy. Ensure that the Input Manager has an Action Assets called XRI Default Input Actions.

  2. Expand XR Origin

...

  1. > Camera Offset

...

  1. Check the LeftHand Controller and RightHand Controller to ensure that Actions are set

...

  1. Go to Project Settings to set up XR Plug-in Management

...

  1. In this example, I am using Oculus so I will select that

...

  1. In Project Settings, select Player and go to Other Settings

...

  1. Create a unique package name. This name will be needed on Launch Server. Remember it.

Info

Copy the package name to the clipboard so you can paste it in an upcoming step

  1. Close Project Settings and go to Launch Server

...

Launch Server

  1. On the left side of your space. select Applications

...

  1. Click Create Applications

...

  1. Enter a title

...

  1. Click Add Platform

...

    1. Select Android

    2. Enter the package name from your Unity project into the Bundle Id field

...

Info

If you copied this value earlier, paste it into this field.

  1. Click Create

...

  1. - we will use this Application in our Launch Module

...

  1. On the left side, click Modules

...

  1. Click Create Module

...

    1. Enter a Title and click Next

...

    1. In Content, select None and click Next

...

    1. In Application, select the application that you just made and click Next

    2. In LRS, select Communicate with an LRS via Launch and click Next

    3. Click the Create button

...

The Launch Module is ready.

  1. On the left side, click Launchers

...

  1. Click Create Launcher

...

    1. Select the Launch Module you just made

...

    1. Select any learner

...

    1. Click Create

We now have a Launch Code. When this code is used, session data will be tracked for this learner going through the application linked to this module.

  1. Return to Unity

...

Unity

  1. Make an APK and deploy it to a headset

...

  1. If you haven't already installed Motive Launch Pad, do that as well

...

  1. Put on the headset

...

VR Headset

  1. Open the Motive Launch Pad app

...

A code will be displayed. This code is needed to provision the device on Launch Server. Make a note of it.

  1. Keep the app running and return to Launch Server with the code

...

Launch Server

  1. Click Devices on the left side

...

  1. Click Provision New Device

...

    1. Enter the code from the Launch Pad app

...

    1. Click Submit

...

Info

If you check back in the headset, the Launch Pad app will now display a keypad at this point.

  1. Go to Launchers and remember your Launch Code

...

  1. Put on the headset

...

VR Headset

  1. Enter the Launch Code into the Launch Pad app

...

  1. The LSDK sample app will run

...

Info

Each of the buttons I clicked are hooked up to trigger specific Motive Insights data to be captured. This code is available to you and you can use it to capture what is important for your clients.

Learn more about how to do this here.

Launch Server

  1. On the left side, click Sessions

...

  1. Select View next to the session which is linked to the learner you chose earlier

...

It will display the Assessment and Scenario complete data that was generated by clicking the various buttons.

Related Articles

Learn more about Launch Server

Configuring the LSDK Sample App