Unity demo projects with DDS integration.
These steps show how to create a Virtual Reality application with Unity integrated with DDS.
- Download Unity from Unity Hub
- Make sure to install the Android build component
- Download the Android SDK
- Create a new 3D project with Unity
- If you are using a Version Control System you may want to do some additional steps from here
- Request an Oculus Signature File for signing your application in your test device.
- Copy the file into
<project>/Assets/Plugins/Android/assets/
- Copy the file into
- Under
Edit -> Project Settings -> Player -> XR SettingscheckVirtual Reality Supported- Make sure you are under the "Android" tab.
- Add a new Virtual Reality SDK, for instance
Oculus. - Set also the
Package NameunderOther settings - Change the
Minimum API Levelto Android 19 - Set
Write permissiontoExternal (SDCard)to be able to load XML files from the external memory.
- Add the connector references
- Run
cd connector && ./build.shorconnector/build.ps1to compile Connector - Copy
connector/src/Connector/bin/Debug/net35/*.dllintoAssets/Plugins - Copy
connector/rticonnextdds-connector/lib/armv7aAndroid2.3gcc4.8/librtiddsconnector.sointoAssets/Plugins/Android/libs/armeabi-v7a
- Run
- Create a cube, associate a C# script file and start coding.
- Select the cube and in the inspector panel, click on
Add component -> New script
- Select the cube and in the inspector panel, click on
- Deploy the Connector XML configuration file into the SD card.
adb push Configuration.xml /sdcard/
- Build and deploy to Android
- Before install, uninstall the old version:
adb uninstall com.company.program - To install:
adb install com.company.program
- Before install, uninstall the old version: