简体   繁体   English

错误 CS0234:命名空间“UnityEngine.XR.WSA”中不存在类型或命名空间名称“WorldAnchor”(您是否缺少程序集引用?)

[英]error CS0234: The type or namespace name 'WorldAnchor' does not exist in the namespace 'UnityEngine.XR.WSA' (are you missing an assembly reference?)

I used remote rendering model and add it to my project but i got a lot of errors.我使用远程渲染 model 并将其添加到我的项目中,但出现了很多错误。 And now these 2 errors stay and I cannot find a solution.现在这两个错误仍然存在,我找不到解决方案。

When I made a new project only to test the remote rendering it works fine but when I add it to my project, many errors appear.当我创建一个新项目只是为了测试远程渲染它工作正常,但是当我将它添加到我的项目时,会出现许多错误。 How do I fix these errors?如何修复这些错误?

1- Library\PackageCache\com.microsoft.azure.spatial-anchors-sdk.core@2.7.2\Runtime\Scripts\SpatialAnchorExtensions.cs(21,41): error CS0234: The type or namespace name 'WorldAnchor' does not exist in the namespace 'UnityEngine.XR.WSA' (are you missing an assembly reference?) 1-Library\PackageCache\com.microsoft.azure.spatial-anchors-sdk.core@2.7.2\Runtime\Scripts\SpatialAnchorExtensions.cs(21,41):错误 CS0234:类型或命名空间名称“WorldAnchor”不存在于命名空间“UnityEngine.XR.WSA”中(您是否缺少程序集引用?)

2- Library\PackageCache\com.microsoft.azure.spatial-anchors-sdk.core@2.7.2\Runtime\Scripts\CloudNativeAnchor.cs(13,41): error CS0234: The type or namespace name 'WorldAnchor' does not exist in the namespace 'UnityEngine.XR.WSA' (are you missing an assembly reference?) 2- Library\PackageCache\com.microsoft.azure.spatial-anchors-sdk.core@2.7.2\Runtime\Scripts\CloudNativeAnchor.cs(13,41):错误 CS0234:类型或命名空间名称“WorldAnchor”不存在于命名空间“UnityEngine.XR.WSA”中(您是否缺少程序集引用?)

I am using the last version of unity 2020.我正在使用最新版本的 unity 2020。

Because you are using Azure Spatial Anchors SDK version 2.7 and according to Building in Unity with Azure Spatial Anchors |因为您使用的是 Azure 空间锚 SDK 版本 2.7 并根据Building in Unity with Azure 空间锚 | Microsoft Docs you need to use Unity 2019.4 or update Azure Spatial Anchors SDK version to 2.9 or later. Microsoft Docs您需要使用 Unity 2019.4 或将 Azure 空间锚 SDK 版本更新到 2.9 或更高版本。

The Azure Spatial Anchors SDK versions 2.8 or earlier do not support the Unity XR Plug-in Framework and should be configured in Unity 2019.4 (LTS) Azure 空间锚 SDK 2.8 或更早版本不支持 Unity XR 插件框架,应在 Unity 2019.4 (LTS) 中配置

The Azure Spatial Anchors SDK for version 2.9 or later should be configured in Unity 2020.3 (LTS) with the Unity XR Plug-in Framework 2.9 或更高版本的 Azure 空间锚 SDK 应使用 Unity XR 插件框架在 Unity 2020.3 (LTS) 中配置

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误CS0234:类型或名称空间名称“持久性”在名称空间“ UnityEngine.XR.WSA”中不存在(您是否缺少程序集引用?) - error CS0234: The type or namespace name 'Persistence' does not exist in the namespace 'UnityEngine.XR.WSA' (are you missing an assembly reference?) 如何修复错误 CS0234:命名空间“UnityEngine”中不存在类型或命名空间名称“Probuilder”(您是否缺少程序集引用? - How to fix error CS0234: The type or namespace name 'Probuilder' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference? 错误 CS0234:命名空间“UnityEditor”中不存在类型或命名空间名称“iOS”。 您是否缺少程序集参考? - error CS0234: The type or namespace name `iOS' does not exist in the namespace `UnityEditor'. Are you missing an assembly reference? 错误 CS0234:命名空间中不存在类型或命名空间名称(是否缺少程序集引用?) - error CS0234: The type or namespace name does not exist in the namespace (are you missing an assembly reference?) ObjectAnchorsWorldManager.cs 错误:命名空间 UnityEngine.XR 中不存在类型或命名空间名称 WindowsMR - ObjectAnchorsWorldManager.cs error : type or namespace name WindowsMR does not exist in the namespace UnityEngine.XR 命名空间错误:错误 CS0234 - 'UnityWebRequest' - Namespace Error: Error CS0234 - 'UnityWebRequest' 命名空间“System.IO”中不存在类型或命名空间名称“Ports”(您是否缺少程序集引用?) - The type or namespace name 'Ports' does not exist in the namespace 'System.IO' (are you missing an assembly reference?) 错误 CS0246:找不到类型或命名空间名称“SVGImage”(是否缺少 using 指令或程序集引用?) - error CS0246: The type or namespace name 'SVGImage' could not be found (are you missing a using directive or an assembly reference?) 错误 CS0246:找不到类型或命名空间名称“BannerPosition”是否缺少 using 指令或程序集引用? - error CS0246: The type or namespace name 'BannerPosition' could not be found are you missing a using directive or an assembly reference? 错误 CS0246:找不到类型或命名空间名称“Npgsql”(您是否缺少 using 指令或程序集引用?) - error CS0246: The type or namespace name 'Npgsql' could not be found (are you missing a using directive or an assembly reference?)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM