Unity - 如何以 45 度步长发射粒子?
Unity - How to emit particles in 45 degree steps?
我最近发现了一个不错的应用程序,它使用了很酷的卡通效果。
看起来像这样:
我用黑色箭头标记了它...
我尝试使用 Unity 粒子系统创建它,但不知何故我无法管理它以 45 度步长发射粒子......在他们的粒子系统中 UI 不是一个选项。
有人知道怎么做吗?或者是否有通过脚本执行此操作的解决方案?
假设您使用的是 Unity 5.6:
创建一个新的粒子系统。设置以下属性:
Looping: No
Emission
Rate over Time: 0
Rate over Distance: 0
Add 1 burst:
Time: 0.00
Min: 8
Max: 8
Cycles: 1
Shape
Shape: Circle
Radius: 2 (or whatever value you want the minimum radius of the shape to be)
Arc: 360
Mode: Burst Spread
Spread: 0.125
Emit from Edge: Yes
Align To Direction: No
Randomize Direction: 0
Spherize Direction: 0
Renderer
Render Mode: Stretched Billboard
Length Scale: 2
如果要更改发射的粒子数,请将爆发上的 Min/Max 从 8 更改为 X,然后将 Shape 上的 Spread 设置为 1/X,其中 X 是您要发射的粒子数想发射。
要制作更长的线条,请增加渲染器的长度比例和形状的半径。
您可能还想玩一下 Limit Velocity over Lifetime 模块。我尝试将 Start Speed 设置为 15,打开 Limit Velocity 模块并将其 Speed 设置为 1 并将 Dampening 设置为 0.125,这产生了一个有趣的效果。
我最近发现了一个不错的应用程序,它使用了很酷的卡通效果。
看起来像这样:
我用黑色箭头标记了它...
我尝试使用 Unity 粒子系统创建它,但不知何故我无法管理它以 45 度步长发射粒子......在他们的粒子系统中 UI 不是一个选项。
有人知道怎么做吗?或者是否有通过脚本执行此操作的解决方案?
假设您使用的是 Unity 5.6:
创建一个新的粒子系统。设置以下属性:
Looping: No
Emission
Rate over Time: 0
Rate over Distance: 0
Add 1 burst:
Time: 0.00
Min: 8
Max: 8
Cycles: 1
Shape
Shape: Circle
Radius: 2 (or whatever value you want the minimum radius of the shape to be)
Arc: 360
Mode: Burst Spread
Spread: 0.125
Emit from Edge: Yes
Align To Direction: No
Randomize Direction: 0
Spherize Direction: 0
Renderer
Render Mode: Stretched Billboard
Length Scale: 2
如果要更改发射的粒子数,请将爆发上的 Min/Max 从 8 更改为 X,然后将 Shape 上的 Spread 设置为 1/X,其中 X 是您要发射的粒子数想发射。
要制作更长的线条,请增加渲染器的长度比例和形状的半径。
您可能还想玩一下 Limit Velocity over Lifetime 模块。我尝试将 Start Speed 设置为 15,打开 Limit Velocity 模块并将其 Speed 设置为 1 并将 Dampening 设置为 0.125,这产生了一个有趣的效果。