unity-builder icon indicating copy to clipboard operation
unity-builder copied to clipboard

Building using Game-CI causes more required features for android than manual build

Open eivinf opened this issue 3 years ago • 3 comments

Bug description

Building using Game-CI causes "com.google.ar.core.depth" to be required event when set to optional in project settings. Manual build causes no such issue. This in turn significantly reduces the number of compatible devices.

image

How to reproduce

  1. Create a new unity project and install AR-foundation and AR-core
  2. In project settings -> XR-plugin management set plug-in provider for android to AR-core
  3. In project settings -> XR-plugin management--> ARCore set depth to "Optional"
  4. Build manually and you will find the requirement of feature "com.google.ar.core.depth" to be false in androidManifest.xml. Building using Game-CI causes the same feature to be true in androidManifest.xml. image image

Expected behavior

Building using Game-CI should not set "com.google.ar.core.depth" to required when set as optional in project settings.

Additional details This is the code used for building: image

eivinf avatar Oct 03 '22 14:10 eivinf

Building using Game-CI causes "com.google.ar.core.depth" to be required event when set to optional in project settings. Manual build causes no such issue.

This is most likely not caused by GameCI specifically, but just by running the build from command line. GameCI is just a tool that makes it easy for you to run a build from command-line. It's probably wise to report this to the plugin maker or set the correct setting in your build script (that are otherwise set automatically when building from the GUI).

webbertakken avatar Oct 03 '22 16:10 webbertakken

Hm interesting, however the changes in the GUI relates to changes in the file "/Assets/XR/Settings/AR Core Settings.asset" which as you can see in the build script I print out to make sure it is correct. Could this still be an issue with building from the terminal even though this file is correct? when the setting exist in a file even without an active GUI of unity open?

eivinf avatar Oct 04 '22 07:10 eivinf

Yea definitely. It wouldn't be the first time. It could be that some required library isn't present and (silently?) doesn't let us know, and we've seen command-line behaving different than the UI in quite a few other cases as well.

One example is the compression for WebGL builds.

webbertakken avatar Oct 04 '22 08:10 webbertakken