Unity使用ParticleSystem制作枪口火焰效果的详细操作
时间:2022-10-26 13:55
当前不少网友不清楚Unity使用ParticleSystem制作枪口火焰效果的详细操作,所以下面小编就带来了Unity使用ParticleSystem制作枪口火焰效果的教程,一起来看看吧!
Unity使用ParticleSystem制作枪口火焰效果的详细操作
1、首先我们新建一个空游戏对象,给它建立一个ParticleSystem组件。

2、展开主面板。设置时长0.1s, 因为枪火的存在时间本来就很短。取消Looping的勾选,因为枪火只射一次。设置起始颜色为黄色。
3、展开Shape,把粒子发射装置的形状调整成一个很细的圆锥,保证枪火的方向和位置固定。

4、设置颜色渐变从白色到黄红到透明,设置大小渐变(添加一个curve)

5、在最下面的Renderer里面设置枪火的材质。其实标准材质包的默认粒子材质就可。最终效果如图。


上文就讲解了Unity使用ParticleSystem制作枪口火焰效果的详细操作过程,希望有需要的朋友都来学习哦。