如何减少Unity水粒子的飞溅效果?

问题描述 投票:0回答:1

我正在尝试使用Unity水粒子灭火。哪个在工作但是水颗粒的飞溅效果却泛滥成灾。我试图缩放它,但是它不起作用。那么如何减少飞溅效果?enter image description hereenter image description here

unity3d particles
1个回答
1
投票

要阻止水颗粒溢出,您可以做两件事的组合:

decrease emission rate of particlesthe velocity of particles。您可以在某些模块下找到这些东西。这是模块列表:

enter image description here

要更改发射率,请在检查器中找到粒子系统,然后转到emmission module。如果尚未打开,请打开它。将Rate over Time变量调整为较低的值,您会注意到形成的颗粒少得多。

enter image description here

然后更改粒子系统的速度,这一方法可以改变几种方式。而且,这取决于您如何改变水向上移动的方式。检查Velocity over Lifetime module的好地方,而您想减小speed modifierlinear velocity的值。

enter image description here

您可能还想检查一下是否降低Limit Velocity over LifetimeInherit VelocityForce over Lifetime的速度值是否可以解决您的问题。

编辑

要停止发射粒子,只需将预先讨论的粒子发射Rate over Time设置回0。为此,请执行以下操作:

 GetComponent<ParticleSystem>().emission.rate = 0.0f; // Or a higher number if you want to restart it

而且,当我注意到您的粒子系统时,您不必像在示例中那样添加爆发。只需更改提到的特定变量即可。

© www.soinside.com 2019 - 2024. All rights reserved.