Unity中调整粒子特效(Particle System)大小

Unity中调整粒子特效(Particle System)大小

问题描述

再Unity中调整粒子系统的Scale,怎么该都不起作用,希望达到调整父Particle System的Scale,整个粒子系统做出相应尺寸调整的变化。

解决方法

原因

粒子系统中有一个属性叫Scaling Mode
Unity中调整粒子特效(Particle System)大小
Scaling Mode:缩放模式,Hierarchy(同时受自己与父节点的缩放影响),Local(自受自己影响),Shape(天塌下来也不缩放)。
particle system默认设置为Local,并且不允许通过transform修改Scale。

解决

    If you have a group of particles together for an effect, the transform on the parent won’t scale everything correctly. Change the Scaling Mode on ALL of your particle systems to Hierarchy. This will allow you to scale the entire particle system from the parent’s transform. Hope this helps!
Unity中调整粒子特效(Particle System)大小

特别注意

如果粒子系统中启用了重力Gravity Modifier,在调整父物体的Scale后,需要再手动等比调整每个粒子系统的Gravity Modifier,这样效果才是正确的。

参考链接

Unity 特效 粒子 ParticleSystem 划重点
How does the Transform’s scale work with a particle system?

上一篇:HTML5文本输入框粒子动画特效DEMO演示


下一篇:SQL Lesson 9: 在查询中使用表达式