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”中。