luoyikun

导航

统计

05 2018 档案

unity3d:ugui 长按按钮
摘要:using UnityEngine; using System.Collections; using UnityEngine.EventSystems; using UnityEngine.Events; public class RepeatButton : MonoBehaviour, IPoi 阅读全文

posted @ 2018-05-30 14:58 luoyikun 阅读(41) 评论(0) 推荐(0) 编辑

unity3d:编辑器脚本,替换选中物体的材质
摘要:using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class ChangeMat : MonoBehaviour { [MenuItem(" 阅读全文

posted @ 2018-05-22 11:28 luoyikun 阅读(40) 评论(0) 推荐(0) 编辑

unity3d:模型跟随鼠标运动,旋转
摘要:using System.Collections; using System.Collections.Generic; using UnityEngine; public class ModelMouseCtrl : MonoBehaviour { public Transform m_curSho 阅读全文

posted @ 2018-05-07 14:10 luoyikun 阅读(11) 评论(0) 推荐(0) 编辑

unity3d:xlua hotfix 热补丁修改c#脚本bug
摘要:先在场景中挂载脚本,加载自定义Loader using System.Collections; using System.Collections.Generic; using UnityEngine; using XLua; using System.IO; using UnityEngine.Ne 阅读全文

posted @ 2018-05-07 01:13 luoyikun 阅读(4) 评论(0) 推荐(0) 编辑

unity3d:xlua 加载自定义Loader
摘要:在xLua加自定义loader是很简单的,只涉及到一个接口: public delegate byte[] CustomLoader(ref string filepath); public void LuaEnv.AddLoader(CustomLoader loader) 通过AddLoader 阅读全文

posted @ 2018-05-03 01:24 luoyikun 阅读(21) 评论(0) 推荐(0) 编辑

unity3d:xlua hotfix 官方例子
摘要:1.新建工程,xlua文件夹与Plugins文件夹放入assets,tools放assets同级目录 2.添加宏:HOTFIX_ENABLE 3.D:\WorkSoft\unity2017.2.0\Editor\Data\Managed 3个文件Unity.Cecil.dll,Unity.Cecil 阅读全文

posted @ 2018-05-03 00:40 luoyikun 阅读(14) 评论(0) 推荐(0) 编辑

unity3d:csv读取数据,兼容单元格中包含逗号
摘要:using UnityEngine; using System.Linq; using System; using System.Text; using System.Collections; using System.Collections.Generic; public class CSV { 阅读全文

posted @ 2018-05-02 14:17 luoyikun 阅读(40) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示