part_emitter_clear

清空指定发射器的设定。

语法:

part_emitter_clear(ps, ind);


参数 描述
ps 发射器所处的粒子系统。
ind 要清空的发射器索引。


返回: N/A(无返回值)


描述

With this function you can clear the given emitter from the specified particle system back to its default state. This will also stop any particles that are being streamed from the emitter at the time, and if you wish to use the emitter again you will need to set the region position and particle type using the part_emitter_region function.


例如:

part_emitter_clear(Sname, p_emit1 );

上述代码将会清空索引为变量“p_emit1”的粒子发射器。


上一页:粒子
下一页:part_emitter_region
© Copyright YoYo Games Ltd. 2018 All Rights Reserved