- Home /
Compile error with MCS Male!!...
Very grateful to anyone willing to help me out here. These days, I got a project in which we morphs shape of human charactor. And I found a plugin in assets store called 'MCS Male', which seemed popular and cost me $50 to buy..
It works really well in unity editor but breaks down while compiling...
error details:
Assets/MORPH3D/Vendor/Unity/Volund/Features/Hair/HairShaderGUI.cs(7,23): error CS0246: The type or namespace name 'ShaderGUI' could not be found. Are you missing a using directive or an assembly reference?
So, I move the HairShaderGUI.cs file to Assets/Editor
Although this works, I meet the next problem when compiling later:
ArgumentException: The Assembly UnityEditor is referenced by M3D_DLL ('Assets/Plugins/M3D_DLL.dll'). But the dll is not allowed to be included or could not be found. UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at /Users/builduser/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:156) UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at /Users/builduser/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:162) UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, BuildTarget target) (at /Users/builduser/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:194)
This plugin uses a DLL called M3D_DLL.dll in directory Assets/Plugins. I think the problem may be there, so I tried several methods:
Switch to other platforms
Change the API Compatibility Level
Intall a new mono platform
But failed. I doubt the DLL uses some components in UnityEditor namespace.
Is there anyone who have used this plugin or met a similar problem.
Please give me some guides or some hints, Thank you!~ Sincerely
Well it's $$anonymous$$ay 2016 now, I have the same problem. Any resolution?
Answer by randroid · Oct 13, 2015 at 11:54 AM
Yup, ran into the same issue. Found the release thread for the product. They acknowledge that it won't compile. See reply #155.
http://forum.unity3d.com/threads/released-morph-character-system-mcs-male-and-female.355675/page-4
Looks like not much we can do but wait.
Answer by ks1993 · May 10, 2016 at 08:36 PM
copie M3D_DLL in the same folder MORPHE3D/plugins and rename it to MORPH3D.DLL then open monodevelopment->Assembly Csharp->references then add MORPH3D.dll to your list of references.
it works fine for me now ^^
Answer by Legendre60 · Jul 09, 2016 at 08:21 AM
It looks like a recent MCS update split their library into 2 dlls. If anyone gets this build error regarding the "M3DIMPORT_DLL.dll", find the file in the Unity Project window and change its import setting to "Editor only"
Your answer
![](https://koobas.hobune.stream/wayback/20220612040919im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
UnityGetGLViewController for macOS 0 Answers
Error BCE0044 plz help 0 Answers
js script suddenly not found by c# scripts 1 Answer
How do i fix a Compiler error 2 Answers
Xcode Files in Asset Server 1 Answer