Reputation: 11
I am a beginner in Unity and when I was working on a project I had the error Folder 'Assets/JMO Assets/Toony Colors Pro/Demo TCP2/Common Demo Assets/Kino Bloom/Editor/' contains multiple assembly definition files (Assets/JMO Assets/Toony Colors Pro/Demo TCP2/Common Demo Assets/Kino Bloom/Editor/CFXR Demo Editor.asmdef). I have no idea about assemblies and when I researched I couldn't understand how to fix the error. How can I fix it?
here are the codes for the two assembly scripts
First One:
"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
Second One:
"name": "ToonyColorsPro.Demo.Editor",
"references": [
"ToonyColorsPro2.Demo"
],
"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
Upvotes: 0
Views: 5564
Reputation: 711
As the error states, you need to delete one of these Assembly Definition Files because a folder can't have more than one.
If this error showed up after updating your asset, then it is possible that the author has renamed the Assembly Definition File in the latest update and it resulted in 2 Assembly Definition Files in your project. I'd recommend you to delete the 'Assets/JMO Assets/Toony Colors Pro/Demo TCP2/Common Demo Assets/Kino Bloom/Editor/' folder and then reimport only that folder from Asset Store (i.e. deselect all other assets in the import dialogue).
Upvotes: 2