google-ar / arcore-unity-sdk

ARCore SDK for Unity
https://developers.google.com/ar
Other
1.4k stars 403 forks source link

'SpatialTracking' does not exist #777

Closed Zumbalamambo closed 3 years ago

Zumbalamambo commented 3 years ago

SPECIFIC ISSUE ENCOUNTERED

It throws the following code while building,

Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewManager.cs(33,23): error CS0234: The type or namespace name 'SpatialTracking' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)

VERSIONS USED

petpetpeter commented 3 years ago

Still facing this problem in Unity 2020 is there any solution?

devbridie commented 3 years ago

arcore-unity-sdk does not support Unity 2020: see https://developers.google.com/ar/develop/unity/quickstart-android.

Please migrate to Unity's AR Foundation or downgrade to Unity 2019.