arfoundation-samples icon indicating copy to clipboard operation
arfoundation-samples copied to clipboard

CS0234 & CS0246 Errors w/ ARFoundation Samples

Open brianbatista opened this issue 7 years ago • 6 comments

After downloading the Samples package and opening it in Unity, I got 19 errors. A few of them:

Library\PackageCache\[email protected]\Runtime\AR\MeshQueue.cs(13,49): error CS0246: The type or namespace name 'MeshInfo' could not be found (are you missing a using directive or an assembly reference?)

Library\PackageCache\[email protected]\Runtime\AR\MeshQueue.cs(5,37): error CS0234: The type or namespace name 'MeshId' does not exist in the namespace 'UnityEngine.XR' (are you missing an assembly reference?)

Library\PackageCache\[email protected]\Runtime\AR\ARMeshManager.cs(156,16): error CS0246: The type or namespace name 'XRMeshSubsystem' could not be found (are you missing a using directive or an assembly reference?)

Any ideas on what I should do? Tried searching here but couldn't find anyone with the same problem..

Versions: Unity: 2019.3.0a3 ARFoundation 2.2.0 ARCore 2.2.0 ARKit 2.2.0 ARKit Face Tracking 1.1.0

brianbatista avatar Jul 18 '19 16:07 brianbatista

Fun of this closed button to glitch on me. Anyhow, still having problems with this. Redownloading Unity / the Samples project didn't work either.

brianbatista avatar Jul 18 '19 17:07 brianbatista

The latest ARFoundation includes support for one new feature whose namespace will change in 2019.3. For now, either use 2019.1, 2019.2, or an earlier release of ARFoundation.

tdmowrer avatar Jul 18 '19 17:07 tdmowrer

Hi. Downgrade your AR Foundation version to 2.0.2 into the Package Manager. It's work for me.

LoryCool avatar Jul 21 '19 03:07 LoryCool

Going to Unity 2019.1 worked perfectly. Downgrading to AR Foundation V2.0.2 using Unity 2019.3 did NOT work. I just got different errors.

Thanks for the suggestions tho.

brianbatista avatar Jul 22 '19 17:07 brianbatista

If the ARFoundation could not be used in Unity 2019.3 for Android, is that means that ARFoundation cannot be used for both iOS and Android at the same time as the iOS need Unity 2019.3? Any solution for this?

Thanks!

leemuljadi avatar Jan 05 '20 09:01 leemuljadi

If the ARFoundation could not be used in Unity 2019.3 for Android, is that means that ARFoundation cannot be used for both iOS and Android at the same time as the iOS need Unity 2019.3? Any solution for this?

Thanks!

ARFoundation is 2019.3 compatible. The samples in this repo can be opened in 2019.2 or 2019.3 and have been tested with Android and iOS.

tdmowrer avatar Jan 24 '20 02:01 tdmowrer