编辑器游戏可以运行,发布就报错,任何平台都报这个错,网上说把.NET 2.0 subset 改成.NET 2.0可以解决这个问题,我尝试了没有用,我又新建了一个demo工程,发现只要把GameGUIEditer.dll文件拷贝到工程目录下Asserts/Plugins就编译不过,用其他的dll文件不会有问题,这个文件引用了unityEditor?请各路大神帮忙分析下可能的原因
ArgumentException: The Assembly UnityEditor is referenced by GameGUIEditer. 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.Dictionary
2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:137)
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary
2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:140)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:172)
UnityEditor.HostView:OnGUI()