Forum Discussion
ImmersiveMatthew
4 years agoAdventurer
vr_splash error (easy fix)
I did a search and have not seen anyone else post about an issue I am having so allow me to share as I surely cannot be the only one. I am getting the follow error every time I build to the Quest in Unity 2021.2.1f1. It started when I added a splash screen image under the XR Plug-In Management settings for Oculus. To get around the issue, just follow the path where it is copying too and delete the vr_splash.png file before each build. Unsure why this is happening, but hoping it gets addressed soon. Will log it as a bug.
OVRGradleGeneration.cs on or about line 242.
File.Copy(sourcePath, targetPath, true);
Adding "true" allows the FIle.Copy to overwrite without throwing an exception if the file already exists. Not sure if/how this would ever actually work correctly unless the build staging area is cleared on each build, and maybe that isn't happening for us.
3 Replies
Replies have been turned off for this discussion
- eVInteractiveProtege
FWIW: I had this issue also and just modified their code to get around it.
- ImmersiveMatthewAdventurer
Ahahaha. Nice one! Could you please share the code you changed here so we can flag a MOD to share with Oculus or I can share on the Oculus Start Discord. Thanks for sharing.
- eVInteractiveProtege
OVRGradleGeneration.cs on or about line 242.
File.Copy(sourcePath, targetPath, true);
Adding "true" allows the FIle.Copy to overwrite without throwing an exception if the file already exists. Not sure if/how this would ever actually work correctly unless the build staging area is cleared on each build, and maybe that isn't happening for us.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 5 months ago
- 3 years ago