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.List1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary2 cache, BuildTarget target) (at /Users/builduser/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:156)
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary2 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:

  1. Switch to other platforms
  2. Change the API Compatibility Level
  3. 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

1 Like

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.

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 ^^

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”