上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页
摘要: 可使用EPPlus类库,下载地址如下: http://epplus.codeplex.com/ 也可以在这里下载: https://files.cnblogs.com/files/jietian331/EPPlus4.1.zip 转载请注明出处: http://www.cnblogs.com/jie 阅读全文
posted @ 2017-12-13 15:55 孤独の巡礼 阅读(373) 评论(0) 推荐(0) 编辑
摘要: Lua之math函数: 转载请注明出处:http://www.cnblogs.com/jietian331/p/8032555.html abs 取绝对值 math.abs(-15) 15 acos 反余弦函数 math.acos(0.5) 1.04719755 asin 反正弦函数 math.as 阅读全文
posted @ 2017-12-13 14:05 孤独の巡礼 阅读(875) 评论(0) 推荐(0) 编辑
摘要: Lua table(表) 参考:http://www.runoob.com/lua/lua-tables.html table 是 Lua 的一种数据结构用来帮助我们创建不同的数据类型,如:数字、字典等。 Lua table 使用关联型数组,你可以用任意类型的值来作数组的索引,但这个值不能是 nil 阅读全文
posted @ 2017-12-06 15:26 孤独の巡礼 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 将物体描一层边可以使游戏看起来具有卡通风格,一种简单的实现方法如下: 将物体渲染2次,即使用2个通道。 第一个通道将顶点沿法线(或中心点到顶点的方向)做一个偏移,即将模型扩大一点,并将颜色渲染成轮廓的颜色。 第二个通道正常渲染物体。 转载请注明出处:http://www.cnblogs.com/ji 阅读全文
posted @ 2017-11-10 15:24 孤独の巡礼 阅读(2278) 评论(0) 推荐(0) 编辑
摘要: 星座定义如下: 代码如下: 阅读全文
posted @ 2017-10-23 16:36 孤独の巡礼 阅读(2094) 评论(0) 推荐(0) 编辑
摘要: 代码如下: 阅读全文
posted @ 2017-09-26 20:26 孤独の巡礼 阅读(2079) 评论(0) 推荐(0) 编辑
摘要: 运动模糊,代码如下: 1 using UnityEngine; 2 3 public class MotionBlurRenderer : PostEffectRenderer 4 { 5 [Range(0.1f, 0.9f)] 6 [SerializeField] 7 float m_blurAm 阅读全文
posted @ 2017-08-03 10:48 孤独の巡礼 阅读(3002) 评论(0) 推荐(0) 编辑
摘要: 从 fbx 中提取 clip 文件,选中 clip 按 Ctrl + D 就可以实现。 但有时候需要工具来做这件事情, 提取的同时对 clip 进行了压缩,并且去除了scale 代码如下: 1 static AnimationClip GenerateAnimClip(string fbx, str 阅读全文
posted @ 2017-07-31 17:47 孤独の巡礼 阅读(6524) 评论(3) 推荐(1) 编辑
摘要: 如代码: 阅读全文
posted @ 2017-07-27 15:36 孤独の巡礼 阅读(6610) 评论(0) 推荐(2) 编辑
摘要: 如代码: string content = File.ReadAllText(path); File.WriteAllText(path, content, Encoding.UTF8); 阅读全文
posted @ 2017-07-27 14:24 孤独の巡礼 阅读(11920) 评论(2) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页