码迷,mamicode.com
首页 > Windows程序 > 详细

如何将C#脚本导入到lua中

时间:2017-04-17 18:55:14      阅读:236      评论:0      收藏:0      [点我收藏+]

标签:wrap   unity   oms   点击   如何   []   settings   tin   bsp   

以导入脚本MyEventListener为例

第一步:在脚本CustomSettings.cs中加入所需导入的脚本类

  //在这里添加你要导出注册到lua的类型列表
     public static BindType[] customTypeList =
     {

      _GT(typeof(MyEventListener)),

   }       

第二步:生成Wrap脚本

  在Unity编辑栏中点击lua->Generate All        

 

如何将C#脚本导入到lua中

标签:wrap   unity   oms   点击   如何   []   settings   tin   bsp   

原文地址:http://www.cnblogs.com/lovesharing/p/6724083.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!