Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
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.
...
Unity
Create a new, empty 3D Unity project
...
Go to Build Settings and select Android as the platform
...
Import the Motive LSDK unity package
...
Search for and then open the scene called LSDK Sample VR
...
...
Open the Package Manager
...
Click the + button and select Add package from git URL... and enter:
com.unity.nuget.newtonsoft-
...
json@3.
...
2.
...
1
Next to the + button, click on Packages and ensure Packages: Unity Registry is selected
...
Search for XR Plugin Management and install it
...
Install XR Interaction Toolkit
...
-this may require a restart of Unity
...
When Unity restarts, in the Package Manager go to XR Interaction Toolkit again
...
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.
Close the Package Manager
...
Click on XR Origin in the Hierarchy. Ensure that the Input Manager has an Action Assets called XRI Default Input Actions.
...
Expand XR Origin -> Camera Offset. Check the LeftHand Controller and RightHand Controller to ensure that Actions are set.
...
In Project Settings, select XR Plug-in Management
...
In this example, I am using Oculus so I will select that
...
...
Select Player and go to Other Settings
Set the Minimum API Level to Android 7.
...
1 ‘Nougat’ (API level 25)
In the Script Compilation section, ensure that Allow ‘unsafe’ Code is checked
In the Identification Section, copy the package name or create a new package name
Info |
---|
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
On the left side of your space. select Applications → Applications
...
Click Create Applications
...
Enter a title
...
Click Add Platform
...
Select Android
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. |
Click Create
...
- we will use this Application in our Launch Module
...
On the left side, click Content Management → Modules
...
Click Create Module
...
Enter a Title and click Next
...
In Content, select None and click Next
...
In Application, select the application that you just made and click Next
In LRS, select Communicate with an LRS via Launch and click Next
Click the Create button at the bottom of the screen
Info |
---|
There are two Create buttons. Only click the Create button at the bottom of the screen. |
The Launch Module is ready.
On the left side, click Launchers
...
Click Create Launcher
...
Select the Launch Module you just made
...
Select any learner
...
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.
Return to Unity
...
Unity
...
Open Build Settings. Add the LSDK Sample App scene
Build an APK and deploy it to a headset
...
If you haven't already installed Motive Launch Pad, do that as well
...
Put on the headset
...
VR Headset
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.
Keep the app running and return to Launch Server with the code
...
Launch Server
Click Devices on the left side
...
Click Provision New Device
...
Enter the code from the Launch Pad app
...
Click Submit
...
Info |
---|
If you check back in the headset, the Launch Pad app will now display a keypad at this point. |
Go to Launchers and remember your Launch Code
...
Put on the headset
...
VR Headset
Enter the Launch Code into the Launch Pad app
...
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
On the left side, click Insights → Sessions
...
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.