• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






小小灵爱李婷

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

随笔分类 -  lua and C#

 
如何将C#脚本导入到lua中
摘要:以导入脚本MyEventListener为例 第一步:在脚本CustomSettings.cs中加入所需导入的脚本类 //在这里添加你要导出注册到lua的类型列表 public static BindType[] customTypeList = { _GT(typeof(MyEventListen 阅读全文
posted @ 2017-04-17 18:01 小小灵爱李婷 阅读(282) 评论(0) 推荐(1)
c#调用lua函数.
摘要:game.csusing LuaInterface;public class Game : MonoBehaviour { private LuaState lua = null; void Awake() { lua = new LuaState(); lua.Start(); string fu 阅读全文
posted @ 2016-12-19 16:20 小小灵爱李婷 阅读(278) 评论(0) 推荐(0)
lua代码设置unity对象的基础属性
摘要:设置对象的父节点: wall.transform:SetParent(GameObject.Find("Walls").transform) 设置颜色: wall:GetComponent("Image").color = UnityEngine.Color(111/255, 89/255, 89/ 阅读全文
posted @ 2016-12-16 18:36 小小灵爱李婷 阅读(627) 评论(0) 推荐(0)