【问题标题】:Unity Burst package doesn't have dependencies installedUnity Burst 包没有安装依赖项
【发布时间】: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 需要的所有依赖项?谢谢

【问题讨论】:

标签: unity3d


【解决方案1】:

转到Window -> Package Manager -> 将包更改为Unity Registry -> 搜索Burst -> 点击Install

如果它已经安装并且需要 Burst 的代码在 .asmdef 中,请确保您的 .asmdef 正在引用 Burst

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-07-01
    • 2017-06-28
    • 2017-11-03
    • 1970-01-01
    • 1970-01-01
    • 2014-08-11
    • 2017-09-30
    相关资源
    最近更新 更多