A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/googlevr/gvr-unity-sdk/issues/954 below:

OnPreprocessBuild throws an error if the SDK is even present in a project · Issue #954 · googlevr/gvr-unity-sdk · GitHub

Summary:

I have a project that needs to build for several platforms. Some platforms require Unity's XR Supported checkbox to be off. (The same issue would occur for projects that are intended for both VR and non-VR builds). As soon as I add the GVR SDK the builds for other platforms fail with the error: "To use the Google VR SDK on Android, 'Player Settings > Virtual Reality Supported' setting must be checked.
Please fix this setting and rebuild your app." (there are other errors along the same lines)

Why does the GVR SDK assume that adding it to a project means that project will only ever be used for Google VR builds?

Found using:

Steps to reproduce the issue:

  1. Start a new project
  2. Add Google VR Unity SDK package to the project
  3. Attempt to build an empty scene. The build fails and errors is displayed.

Workarounds:

  1. Add/remove the entire Google VR SDK every time I want to build for a each platform (takes several minutes and means I can't have an automated build pipeline)
  2. Disable the check every time I update the GVR SDK

Additional comments:

Suggested resolution...

  1. Change the error to a warning
  2. Only throw an error if the build contains a scene with a Google VR component in it.
  3. Remove it entirely and assume the user knows what they are doing

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4