UI Particle System插件阅读
2018-05-11 本文已影响0人
CrazyTiger
0. 简介
1. 组件





2. 使用上
- Canvas(要求Camera):UIParticleCanvas.cs
- UGUI GameObject(要求Image或者RawImage):UIParticleDepthObject.cs
- 粒子系统:MODev/UIParticle/Particle.shader
3. 脚本创建对象
- 1个RenderTexture:设置到Shader全局变量
- 1个Camera,MaskLayer,渲染到RenderTexture
- 创建UGUI对象(有脚本UIParticleDepthObject,才会创建,从Image或者RawImage中拷贝Mesh)
MODev/UIParticle/Mask/DepthRender.shader:"RenderType"="Opaque", MaskLayer - UGUI对象(UI/Default):"Queue"="Transparent"
- 粒子系统(MODev/UIParticle/Particle):"Queue"="Transparent+10"