You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The assembly definition file has the wrong value for the Version Defines field.
As you can see in the screenshot both versions of ARFoundation use the same flag, but the version [5.0,6.0) should use ARCORE_USE_ARF_5.
This is overriden with the ARCORE_USE_ARF_5 in PlayerSettings when building an app, but not in editor or when building AssetBundles, leading to an error because editor and platform builds have different serialized fields on the ARCoreExtensions script.
As a workaround, the .asmdef of the package can be edited in a text editor and the value can be changed to the correct oneARCORE_USE_ARF_5, and unity will apply it after that.
The text was updated successfully, but these errors were encountered:
It causes issues when building AssetBundles. It does not when building the app IF the user already applied the ARCORE_USE_ARF_5 in PlayerSettings > Other Settings > Scripting Define Symbols, as it has higher priority in the #IF chain on ARCoreExtensions.cs (and maybe more scripts).
The assembly definition file has the wrong value for the Version Defines field.
As you can see in the screenshot both versions of ARFoundation use the same flag, but the version [5.0,6.0) should use
ARCORE_USE_ARF_5
.This is overriden with the
ARCORE_USE_ARF_5
in PlayerSettings when building an app, but not in editor or when building AssetBundles, leading to an error because editor and platform builds have different serialized fields on the ARCoreExtensions script.As a workaround, the .asmdef of the package can be edited in a text editor and the value can be changed to the correct one
ARCORE_USE_ARF_5
, and unity will apply it after that.The text was updated successfully, but these errors were encountered: