简体   繁体   中英

Unity type or namespace name 'Spatial Tracking' does not exist in the namespace 'UnityEngine'

I am working on this project using a leap motion on a mac notebook. Unfortunately, I am getting the following error.

在此处输入图片说明

To my knowledge I have the latest versions installed.

The Spatial Tracking is part of the ARCore package.

In order to install it, you have to download the ARCore Unity SDK from GitHub.

You should find arcore-unity-sdk-1.19.0.unitypackage here https://github.com/google-ar/arcore-unity-sdk/releases/download/v1.19.0/arcore-unity-sdk-1.19.0.unitypackage .

Execute it and it should be auto-imported in Unity.

Then you'll have you Spatial Tracking.

If you have already installed ARCore/Spatial Tracking, delete plugins and package and reinstall following https://developers.google.com/ar/develop/unity/quickstart-android

From Window > Package Manager install the XR Plugin Management and the error will disappear:

截屏

For those who are working on Windows:

Window > Package Manager and then install the XR Plugin Management

At least it worked for me in Unity 2020.1.8 and with the Leap Motion Core Package

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM