如何将C#脚本导入到lua中
时间:2017-04-17 18:56:47
收藏:0
阅读:317
以导入脚本MyEventListener为例
第一步:在脚本CustomSettings.cs中加入所需导入的脚本类
//在这里添加你要导出注册到lua的类型列表
public static BindType[] customTypeList =
{
_GT(typeof(MyEventListener)),
}
第二步:生成Wrap脚本
在Unity编辑栏中点击lua->Generate All
原文:http://www.cnblogs.com/lovesharing/p/6724083.html
评论(0)