Unity 多个程序集定义文件错误

问题描述

我是 Unity 的初学者,当我在做一个项目时出现错误 文件夹“资产/JMO 资产/Toony Colors Pro/Demo TCP2/Common Demo Assets/Kino Bloom/Editor/”包含多个程序集定义文件(Assets/JMO Assets/Toony Colors Pro/Demo TCP2/Common Demo Assets/Kino Bloom/Editor/CFXR Demo Editor.asmdef)。我不知道程序集,当我研究时,我无法理解如何修复错误。我该如何解决?

这里是两个汇编脚本的代码

第一个:

    "references": [
        "CFXRDemo"
    ],"includePlatforms": [],"excludePlatforms": [
        "Android","CloudRendering","iOS","LinuxStandalone64","Lumin","macOSStandalone","PS4","Stadia","Switch","tvOS","WSA","WebGL","WindowsStandalone32","WindowsStandalone64","XboxOne"
    ],"allowUnsafeCode": false,"overrideReferences": false,"precompiledReferences": [],"autoReferenced": true,"defineConstraints": [],"versionDefines": [],"noEngineReferences": false 

第二个:

 "name": "ToonyColorsPro.Demo.Editor","references": [
        "ToonyColorsPro2.Demo"
    ],"noEngineReferences": false

解决方法

如错误所述,您需要删除这些程序集定义文件之一,因为一个文件夹不能有多个。

如果更新您的资产后出现此错误,则可能是作者在最新更新中重命名了程序集定义文件,导致您的项目中有 2 个程序集定义文件。我建议您删除“Assets/JMO Assets/Toony Colors Pro/Demo TCP2/Common Demo Assets/Kino Bloom/Editor/”文件夹,然后仅从 Asset Store 重新导入该文件夹(即在导入对话框中取消选择所有其他资产)。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...