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
- Open unity and create a new 3D project.
- Select Asset > Import Package > Custom Package.
- Select the
Vive-SRanipal-Unity-Plugin.unitypackage
Unity Package that you download above.
- In the Importing Package dialog, make sure that all package options are selected and click Import.
- Accept any API upgrades if prompted.
- Enable Unity VR support (official manual).
- Open Window > Package Manager. Select openVR(Desktop) and click Install.
Play the sample scene
- In the Unity Project window, find the scene Sample.unity in: Asset > ViveSR > Scenes.
- Ensure that all Requirements in SRanipal_SDK_Guide.docx are met and then click on Play.
Build the sample app
- Select File > Build Settings.
- 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
- Create an empty GameOjbect. We name it SRanipal here.
- Add the component SRanipal_Framework to the Gameobject SRanipal.
- 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.