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