Desktop users making CustomUnityAssets often get tripped up when they find their assets don't work in VR and have no way to test and no clear explanation of how to fix it, but it's actually easy so here we go:
1. Enable Single Pass Stereo
This is the most common problem because the default Unity setup is not correctly set for Single Pass VR rendering, without it the same image will be drawn to each eye so there is no perception of depth.
In your Unity project open Player Settings by clicking Edit > Project Settings, then select Player.
At the bottom of the Player Settings screen expand the XR Settings section and change the Stereo Rendering Method to Single Pass.
This is "set and forget", you never need to change this again in your project.
2. Remove any Unity cameras before export
A Unity camera in the asset will cause the VR camera to become attached to it when loading a scene, always make sure to remove any cameras from the asset you are exporting.
3. Other gotchas
Points 1 and 2 will fix 99% of VR issues but you should also look out for (Thanks to @hazmhox):
- The vast majority of Materials will work in VR but not all, make sure your material is compatible with Single Pass VR Stereo.
4. Helpful links
Here are some excellent guides that will help make your asset creation a breeze, happy creating!
Unity AssetBundles for VaM 1.xx by @MacGruber
The definitive asset creation tutorial for VaM by @hazmhox
Perfect CUA Editor Tutorial by @hazmhox
1. Enable Single Pass Stereo
This is the most common problem because the default Unity setup is not correctly set for Single Pass VR rendering, without it the same image will be drawn to each eye so there is no perception of depth.
In your Unity project open Player Settings by clicking Edit > Project Settings, then select Player.
At the bottom of the Player Settings screen expand the XR Settings section and change the Stereo Rendering Method to Single Pass.
This is "set and forget", you never need to change this again in your project.
2. Remove any Unity cameras before export
A Unity camera in the asset will cause the VR camera to become attached to it when loading a scene, always make sure to remove any cameras from the asset you are exporting.
3. Other gotchas
Points 1 and 2 will fix 99% of VR issues but you should also look out for (Thanks to @hazmhox):
- The vast majority of Materials will work in VR but not all, make sure your material is compatible with Single Pass VR Stereo.
4. Helpful links
Here are some excellent guides that will help make your asset creation a breeze, happy creating!
Unity AssetBundles for VaM 1.xx by @MacGruber
The definitive asset creation tutorial for VaM by @hazmhox
Perfect CUA Editor Tutorial by @hazmhox