上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页
摘要: Unity NGUI系统中是没有对粒子进行排序的,如: 怎么解决这个问题呢? 思路是把粒子的渲染层级,相对于UI组件的层级进行一个偏移。 解决后的效果如下: 代码如下: 新增脚本 UIRenderQueueSorter.cs: 1 using System.Collections.Generic; 阅读全文
posted @ 2019-05-29 16:00 太乙_真人 阅读(548) 评论(0) 推荐(0)
摘要: 之前写过一篇单个 UIPanel 对粒子的裁剪,地址是:https://www.cnblogs.com/jietian331/p/5075487.html 但项目中有时会遇到多个UIPanel,如下面问题,UISprite 被剪裁了,但粒子未被剪裁: 转载请注明出处:https://www.cnbl 阅读全文
posted @ 2019-05-28 17:29 太乙_真人 阅读(574) 评论(0) 推荐(0)
摘要: 转载请注明出处:https://www.cnblogs.com/jietian331/p/10911991.html 阅读全文
posted @ 2019-05-23 15:06 太乙_真人 阅读(599) 评论(0) 推荐(0)
摘要: 一套QQ飞车的衣服,模仿其效果写的shader,效果如下: 部分shader如下: 1 Shader "qq/Cloth" 2 { 3 Properties 4 { 5 _MainTex ("Base (RGB)", 2D) = "white" {} 6 _NormalMap("Normal Map 阅读全文
posted @ 2019-05-08 10:18 太乙_真人 阅读(2851) 评论(2) 推荐(0)
摘要: 1. 找到夜神模拟器安装目录bin目录,如:D:\Program Files\Nox\bin 2.打开cmd,切到bin目录,如: 3. 输入命令,adb logcat 即可,(可使用命令chcp 65001切换编码,以能正常显示中文)如: 或使用:adb connect 127.0.0.1:620 阅读全文
posted @ 2019-04-25 11:21 太乙_真人 阅读(1908) 评论(0) 推荐(0)
摘要: 如何使用xlua实现协程,示例代码如下: 转载请注明出处:https://www.cnblogs.com/jietian331/p/10735773.html 阅读全文
posted @ 2019-04-19 14:33 太乙_真人 阅读(1599) 评论(0) 推荐(0)
摘要: Color Mask解释,见unity文档: ColorMask Set color channel writing mask. Writing ColorMask 0 turns off rendering to all color channels. Default mode is writin 阅读全文
posted @ 2019-04-09 10:17 太乙_真人 阅读(8449) 评论(1) 推荐(0)
摘要: 一,部分游戏规则如下: 二,代码如下: 1. 游戏逻辑核心代码 1 using System.Collections.Generic; 2 using UnityEngine; 3 4 namespace Modules.UI 5 { 6 // 逻辑与UI分离,这是逻辑类 7 public clas 阅读全文
posted @ 2019-04-04 10:29 太乙_真人 阅读(344) 评论(0) 推荐(0)
摘要: 代码如下: 转载请注明出处:https://www.cnblogs.com/jietian331/p/10653398.html 阅读全文
posted @ 2019-04-04 10:22 太乙_真人 阅读(828) 评论(0) 推荐(0)
摘要: 使用 Application.Quit(),但在 editor 模式下使用 Application.Quit()是没用的,要用 EditorApplication.isPlaying = false。 故代码如下: 转载请注明出处:https://www.cnblogs.com/jietian331 阅读全文
posted @ 2019-03-20 16:18 太乙_真人 阅读(11224) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页