名称空间“ UnityEngine”中不存在Unity类型或名称空间名称“ Spatial Tracking”

问题描述

我正在使用Mac笔记本上的跳跃动作来进行此项目。 不幸的是,我收到以下错误

enter image description here

据我所知,我已经安装了最新版本。

解决方法

空间跟踪是ARCore软件包的一部分。

要安装它,您必须从GitHub下载ARCore Unity SDK。

您应该在https://github.com/google-ar/arcore-unity-sdk/releases/download/v1.19.0/arcore-unity-sdk-1.19.0.unitypackage处找到arcore-unity-sdk-1.19.0.unitypackage

执行它,它应该自动导入Unity。

然后,您将获得空间跟踪。

如果您已经安装了ARCore / Spatial Tracking,请删除插件和软件包,然后按照https://developers.google.com/ar/develop/unity/quickstart-android

重新安装 ,

对于使用Windows的用户:

Window> Package Manager,然后安装 XR插件管理

至少它在Unity 2020.1.8和Leap Motion Core 软件包

中对我有用 ,

Window > Package Manager安装XR插件管理,错误将消失:

screenshot