[原][粒子特效][spark]事件action

深入浅出spark粒子特效连接:https://www.cnblogs.com/lyggqm/p/9956344.html

group调用action的地方:

可以看到使用action的可以是出生一次,结束一次

action

An abstract class that allows to perform an action on a single particle.

 

actionset

 

SpawnParticlesAction

An action that allows particles to spawn punctually at another particle's position.
This allows to have some particles spawn at some particle's position when the action is triggered.
Note that this is only for a punctual spawning. For a continuous spawning, consider using an EmitterAttacher.
To set up particle spawning, an base Emitter is used. The emitter and its zone are copied and the copied emitter is transformed accordingly to the particle's position when an action is triggered.
A pool of copied emitter is used internally to avoid creating too many emitters.

允许粒子在另一个粒子的位置准时生成的动作。
这允许在触发动作时在某个粒子的位置产生一些粒子。
请注意,这仅适用于准时产卵。 对于连续产卵,请考虑使用EmitterAttacher。
要设置粒子产生,使用基础发射器。 复制发射器及其区域,并在触发动作时将复制的发射器相应地转换为粒子的位置。
内部使用复制发射器池以避免创建太多发射器。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值