【发布时间】:2023-02-14 23:55:19
【问题描述】:
我已经安装了新版本的unity,当我打开项目时,我收到以下错误消息:
Library\PackageCache\com.unity.burst@1.6.4\Unity.Burst.CodeGen\AssemblyLoader.cs(29,28): error CS0246: The type or namespace name 'BaseAssemblyResolver' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.burst@1.6.4\Unity.Burst.CodeGen\AssemblyLoader.cs(912,25): error CS0246: The type or namespace name 'AssemblyNameReference' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.burst@1.6.4\Unity.Burst.CodeGen\ILPostProcessing.cs(11,52): error CS0246: The type or namespace name 'MethodDefinition' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.burst@1.6.4\Unity.Burst.CodeGen\ILPostProcessing.cs(11,77): error CS0246: The type or namespace name 'Instruction' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.burst@1.6.4\Unity.Burst.CodeGen\BurstILPostProcessor.cs(39,24): error CS0246: The type or namespace name 'SequencePoint' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.burst@1.6.4\Unity.Burst.CodeGen\FunctionPointerInvokeTransform.cs(80,94): error CS0246: The type or namespace name 'TypeSystem' could not be found (are you missing a using directive or an assembly reference?)
缺少其他包裹。 如何安装 Burst 需要的所有依赖项?谢谢
【问题讨论】:
-
你能打开包管理器吗?尝试卸载“Burst”等并重新安装。此外,每当在 Unity 版本之间切换时,删除
Library文件夹。当您再次打开项目时,它会由 Unity 重建。有时会留下一些导致问题的剩余部分。另请参阅Cleaning up and Migrating existing Unity project into new one or another PC -
谢谢,删除库有效
标签: unity3d