luoyikun

导航

上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 31 下一页

2018年5月22日 #

unity3d:编辑器脚本,替换选中物体的材质

摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class ChangeMat : MonoBehaviour { [MenuItem(" 阅读全文

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

2018年5月7日 #

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 阅读(18) 评论(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 阅读(11) 评论(0) 推荐(0)

2018年5月3日 #

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 阅读(29) 评论(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 阅读(22) 评论(0) 推荐(0)

2018年5月2日 #

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 阅读(48) 评论(0) 推荐(0)

2018年4月26日 #

unity3d:粒子随摄像机远近有大小变化bug

摘要: 解决办法 找到粒子放材质球的属性栏,找到Max particle Size 属性把他的大小调到和粒子大小属性差不多 阅读全文

posted @ 2018-04-26 12:26 luoyikun 阅读(33) 评论(0) 推荐(0)

unity3d:ugui世界坐标朝向摄像机

摘要: using UnityEngine; using System.Collections; public class LookAtCam : MonoBehaviour { public Transform m_camTrans; // Use this for initialization void 阅读全文

posted @ 2018-04-26 09:49 luoyikun 阅读(26) 评论(0) 推荐(0)

2018年4月19日 #

vs 生成事件,复制生成的exe到指定文件夹

摘要: copy /Y "$(TargetDir)123.exe" "E:\xxx\" 阅读全文

posted @ 2018-04-19 11:27 luoyikun 阅读(8) 评论(0) 推荐(0)

2018年4月18日 #

unity3d shader 双面材质

摘要: // Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt) Shader "Standard(Two Side)" { Properties { _Colo 阅读全文

posted @ 2018-04-18 15:24 luoyikun 阅读(60) 评论(0) 推荐(0)

上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 31 下一页