Video Walkthrough - Setup Lightweight SDK VR Sample with Launch Server and Launch Pad

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 using Launch Pad v2.mp4

 

Unity

  1. Create a new, empty 3D Unity project

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

  3. Import the Motive LSDK unity package

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

  5. Open the Package Manager

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

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

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

  8. Search for XR Plugin Management and install it

  9. Install XR Interaction Toolkit -this may require a restart of Unity

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

  11. 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.

  12. Close the Package Manager

  13. In Project Settings, select XR Plug-in Management

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

  15. Select Player and go to Other Settings

  16. Set the Minimum API Level to Android 7.1 ‘Nougat’ (API level 25)

  17. In the Script Compilation section, ensure that Allow ‘unsafe’ Code is checked

  18. In the Identification Section, copy the package name or create a new package name

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

Save

Close Project Settings and go to Launch Server

Launch Server

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

  2. Click Create Applications

  3. Enter a title

  4. Click Add Platform

    1. Select Android

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

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

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

  2. On the left side, click Content Management → Modules

  3. Click Create Module

    1. Enter a Title and click Next

    2. In Content, select None and click Next

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

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

    5. Click the Create button at the bottom of the screen

There are two Create buttons. Only click the Create button at the bottom of the screen.

The Launch Module is ready.

  1. On the left side, click Launchers

  2. Click Create Launcher

    1. Select the Launch Module you just made

    2. Select any learner

    3. Click Create

  1. Return to Unity

Unity

  1. Open Build Settings. Add the LSDK Sample App scene

  2. Build an APK and deploy it to a headset

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

  4. Put on the headset

VR Headset

  1. Open the Motive Launch Pad app

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

Launch Server

  1. Click Devices on the left side

  2. Click Provision New Device

    1. Enter the code from the Launch Pad app

    2. Click Submit

  1. Go to Launchers and remember your Launch Code

  2. Put on the headset

VR Headset

  1. Enter the Launch Code into the Launch Pad app

  2. The LSDK sample app will run

Launch Server

  1. On the left side, click Insights → Sessions

  2. 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