我正在开发一个 Hololens 应用程序。我收到错误“属性 _InnerGlowColor 已存在于属性表中,但类型不同:boundingbox.cs 中为 2”

问题描述 投票:0回答:1

这是我使用的组件。components

我收到以下错误报告: error 错误:

Property _InnerGlowColor already exists in the property sheet with a different type: 2
UnityEngine.Material:SetFloatArray (string,single[])
Microsoft.MixedReality.Toolkit.UI.BoundingBox:SetMaterials () (at ./Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation@f2323a9b7aec/SDK/Features/UX/Scripts/BoundingBox/BoundingBox.cs:1971)
Microsoft.MixedReality.Toolkit.UI.BoundingBox:CreateRig () (at ./Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation@f2323a9b7aec/SDK/Features/UX/Scripts/BoundingBox/BoundingBox.cs:1216)
Microsoft.MixedReality.Toolkit.UI.BoundingBox:OnEnable () (at ./Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation@f2323a9b7aec/SDK/Features/UX/Scripts/BoundingBox/BoundingBox.cs:1239)

还有

MissingReferenceException: The object of type 'Transform' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
Microsoft.MixedReality.Toolkit.UI.BoundingBox.DestroyRig () (at ./Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation@f2323a9b7aec/SDK/Features/UX/Scripts/BoundingBox/BoundingBox.cs:1361)
Microsoft.MixedReality.Toolkit.UI.BoundingBox.OnDisable () (at ./Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation@f2323a9b7aec/SDK/Features/UX/Scripts/BoundingBox/BoundingBox.cs:1263)

我尝试删除着色器缓存但不起作用,或者关闭一些组件。

unity-game-engine hololens mrtk hololens-emulator
1个回答
0
投票

根据错误消息,您似乎同时使用了 BoundsControl.csBoundingBox.cs。边界框已被弃用,并由其后继边界控件取代。如果您已经有 BoundsControl,请删除 BoundingBox

© www.soinside.com 2019 - 2024. All rights reserved.