part_emitter_create

在指定粒子系统内新建一个发射器。

语法:

part_emitter_create(ps);


参数 描述
ps 要在其中创建发射器的粒子系统。


返回: Real(实数)


描述

This function must be used to create a new emitter and assign it to a given particle system. The function will return the index value for the new emitter which must be stored in a variable and used in all further functions that reference the emitter, and the emitter itself must be destroyed when no longer being used to prevent memory leaks (this can be achieved using the specific emitter destroy functions or by destroying the whole particle system that the emitter belongs to).


例如:

p_emit1 = part_emitter_create(Sname);

这段代码会新建一个粒子发射器并将其索引存入变量“p_emit”中。


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