Skip to main content
Inspiring
November 11, 2021
Solved

vr_splash error (easy fix)

  • November 11, 2021
  • 3 replies
  • 1886 views

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.

    This topic has been closed for replies.
    Best answer by eVInteractive

    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

    eVInteractive
    Inspiring
    November 12, 2021

    FWIW: I had this issue also and just modified their code to get around it.  

    Inspiring
    November 12, 2021

    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.

    eVInteractive
    Inspiring
    November 12, 2021

    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.