Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Have problems with installing AR foundation and ar core in unity?

Have these Many problems with Unity and need help with them

enter image description here

Errors:

1-Library\PackageCache\[email protected]\Runtime\ARCoreImageTrackingProvider.cs(35,60): error CS1715: 'ARCoreImageTrackingProvider.Provider.imageLibrary': type must be 'RuntimeReferenceImageLibrary' to match overridden member 'XRImageTrackingSubsystem.IProvider.imageLibrary'
2-Library\PackageCache\[email protected]\Runtime\ARCoreImageTrackingProvider.cs(33,15): error CS0534: 'ARCoreImageTrackingProvider.Provider' does not implement inherited abstract member 'XRImageTrackingSubsystem.IProvider.imageLibrary.set'
3-Library\PackageCache\[email protected]\Runtime\ARCoreImageTrackingProvider.cs(33,15): error CS0534: 'ARCoreImageTrackingProvider.Provider' does not implement inherited abstract member 'XRImageTrackingSubsystem.IProvider.CreateRuntimeLibrary(XRReferenceImageLibrary)'
4-Error building Player because scripts have compile errors in the editor
5-Build completed with a result of 'Failed'
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
6-UnityEditor.BuildPlayerWindow+BuildMethodException: Error building Player because scripts have compile errors in the editor
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00234] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:191 
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:97 
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Unity version: 2018.3.14f1

like image 695
Yusuf Fathi Avatar asked Oct 14 '25 23:10

Yusuf Fathi


1 Answers

Hey man i figured it out. You must use the correct versioon of the package for each 2018 and 2019 unity. see the below:: follow my linkedin XR-Company page for more XR support :

For Unity 2018:

  • AR Foundation 1.0.0 — preview.22 (the latest for 1.0.0)
  • ARCore XR Plugin 1.0.0 — preview.24 (the latest for 1.0.0)
  • ARKit XR Plugin 1.0.0-preview.27 (the latest for 1.0.0)

For Unity 2019:

  • AR Foundation 2.0.2
  • ARCore XR Plugin 2.0.2
  • ARKit XR Plugin 2.0.2
like image 88
Mohan Pannirselvam Avatar answered Oct 18 '25 00:10

Mohan Pannirselvam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!