用CinemaSuite导入项目创建Cutscene报的错误,但是在空工程里没有这个问题,具体日志如下
ReflectionTypeLoadException: The classes in the module cannot be loaded.
System.Reflection.Assembly.GetTypes () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/Assembly.cs:371)
DirectorHelper.GetAllSubTypes (System.Type ParentType) (at Assets/Cinema Suite/Cinema Director/System/Editor/Utility/DirectorHelper.cs:283)
CinemaDirectorControl.Utility.CutsceneControlHelper.ShowAddTrackGroupContextMenu (CinemaDirector.Cutscene cutscene) (at Assets/Cinema Suite/Cinema Director/System/Editor/Utility/CutsceneControlHelper.cs:22)
CutsceneInspector.OnInspectorGUI () (at Assets/Cinema Suite/Cinema Director/System/Editor/CustomInspectors/CutsceneInspector.cs:107)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1231)
UnityEditor.DockArea:OnGUI()
获取已加载到此应用程序域的执行上下文中的程序集 出的错,最后定位到Plugins里添加了System.Data和System.Drawing这两个程序集的问题,这两个程序集unity已经提供,没有必要在plugins里添加,有可能获取程序集的时候有多个地方相同的程序集不知道获取哪个导致,删除plugins里的dll就可以了