Unity编程笔录--使用KGFMapSystem导入包文件 KGFEditor.cs(15,37)报错解决方案

来源:互联网 发布:onekeytools mac 编辑:程序博客网 时间:2024/06/16 12:04

原因:在做项目的时候,需要使用KGFMapSystem小地图工具,我使用的是KGFMapSystemv2.2版本,导入到项目中会出现爆红

错误提示:

出错原因:可能是使用的项目中Action类比较老旧,没有引用出来,所以要对新的Action类进行引用

解决方案:1:双击打开提示的错误,此时是在KGFEditor.cs文件中,找到KGFGUIUtilityEditor类中RenderKGFInspector方法的声明  如图:

2:找到RenderKGFInspector方法声明,是在KGFGUIUtilityEditor类的69行,如图:

3:把原来的方法参数类型修改为   public static void RenderKGFInspector(KGFEditor theEditor, Type theType, System.Action theHandler) 如图

解决完。

0 0