其他分享
首页 > 其他分享> > Unity中调整粒子特效(Particle System)大小

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

作者:互联网

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

问题描述

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

解决方法

原因

粒子系统中有一个属性叫Scaling Mode
在这里插入图片描述
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!
在这里插入图片描述

特别注意

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

参考链接

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

标签:粒子系统,Scale,Particle,particle,缩放,System,Unity
来源: https://blog.csdn.net/qq_41452267/article/details/111571416