以导入脚本MyEventListener为例
第一步:在脚本CustomSettings.cs中加入所需导入的脚本类
//在这里添加你要导出注册到lua的类型列表
public static BindType[] customTypeList =
{
_GT(typeof(MyEventListener)),
}
第二步:生成Wrap脚本
在Unity编辑栏中点击lua->Generate All
以导入脚本MyEventListener为例
第一步:在脚本CustomSettings.cs中加入所需导入的脚本类
//在这里添加你要导出注册到lua的类型列表
public static BindType[] customTypeList =
{
_GT(typeof(MyEventListener)),
}
第二步:生成Wrap脚本
在Unity编辑栏中点击lua->Generate All
转载于:https://www.cnblogs.com/lovesharing/p/6724083.html