3 Development notes

3.1 Enable device USB Debugging on device

USB Debugging is enabled by default. If it is not open, you can refer to our developer platform online documentation at: http://static.appstore.picovr.com/docs/FAQ/chapter_two.html#q2-how-to-enable-usb-debugging

3.2 Android Manifest Document

  • Special meta-data needs to be added; otherwise, an exception will be displayed::

<meta-data android:name=" pvr.app.type " android:value="vr"/>
<meta-data android:name=" pvr.display.orientation " android:value="180"/>
  • All activity that needs to be displayed needs to inherited from

com.unity3d.player.UnityPlayerNativeActivityPico
  • Add the necessary permissions

<uses-permission android:name="android.permission.WRITE_SETTINGS"/>
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.INJECT_EVENTS" />

3.4 LWRP configuration instructions

For example,In Unity 2019.1.0f2.

  1. Open Window/Package Manager

_images/3.5.PNG

Figure 3.5 Window toolbar

  1. Select Show preview packages

_images/3.6.PNG

Figure 3.6 The advanced option of Packages

  1. Under “Render-Pipelines.Lightweight”, click Install in the lower right corner

_images/3.7.PNG

Figure 3.7 Install the LWRP

  1. Create LightweightRenderPipelineAsset in the assets directory

_images/3.8.PNG

Figure 3.8 Create LWRP Asset

  1. Use LightweightRenderPipelineAsset

Drag and drop the file created in step 4 to Scriptable Render Pipeline Setting field in Project Setting/Graphics

_images/3.9.PNG

Figure 3.9 Use LWRP Asset

  1. Replace materials in the project with LWRP materials

_images/3.10.PNG

Figure 3.10 Update materials in the project