SRanipal Unity SDK  1.3.2.0
SRanipal Unity SDK document
Getting Started with SRanipal SDK in Unity

Prerequisites

The SRanipal SDK for Unity can be implemented only when the SRanipal runtime has been setup. Use the following guideline to setup the SRanipal Runtime — SRanipal_version\SRanipal_SDK_Guide.pdf.

Create a new project and import the SDK

  1. Open unity and create a new 3D project.
  2. Select Asset > Import Package > Custom Package.
  3. Select the Vive-SRanipal-Unity-Plugin.unitypackage Unity Package that you download above.
  4. In the Importing Package dialog, make sure that all package options are selected and click Import.
  5. Accept any API upgrades if prompted.
  6. Enable Unity VR support (official manual).
    vrSupport.png
  7. Open Window > Package Manager. Select openVR(Desktop) and click Install.

Play the sample scene

  1. In the Unity Project window, find the scene Sample.unity in: Asset > ViveSR > Scenes.
  2. Ensure that all Requirements in SRanipal_SDK_Guide.docx are met and then click on Play.

Build the sample app

  1. Select File > Build Settings.
  2. In the Unity Build Settings window, adjust the Architecture on x86_64 and click Build and Run.

Enable SRanipal functionality in your Unity project.

Enable the SRanipal Framework

  1. Create an empty GameOjbect. We name it SRanipal here.
    createGameObj.png
  2. Add the component SRanipal_Framework to the Gameobject SRanipal.
  3. Toggle Enable L according to your application.

Lip relative features

Control Avatar’ lip

To reflect the player’s lip movement on an avatar, refer to the script SRanipal_AvatarLipSample.cs.

lipControl.png