Optional
target: any是否开启
粒子系统
Private
subThe total number of sub-emitters.
Add a new sub-emitter.
Gets the properties of the sub - emitter at the given index.
The index of the sub-emitter.
Gets the sub - emitter Particle System at the given index.
The index of the desired sub-emitter.
Gets the type of the sub - emitter at the given index.
The index of the desired sub-emitter.
Sets the properties of the sub - emitter at the given index.
The index of the sub-emitter you want to modify.
The new properties to assign to this sub-emitter.
Sets the Particle System to use as the sub - emitter at the given index.
Sets the type of the sub - emitter at the given index.
The index of the sub-emitter you want to modify.
The new spawning type to assign to this sub-emitter.
发射事件。
返回发射后的事件。
事件的类型。类型区分大小写。
Optional
data: any事件携带的自定义数据。
是否向上级报告事件。默认为false
。
是否向下级广播事件。默认为false
。
是否向平级分享事件。默认为true
。
Protected
handelProtected
handelProtected
handel向平级分享事件
事件
Protected
handle移除监听
移除所有监听
Optional
type: K事件的类型。可选。该值为空时所有被监听对象上的监听均将被移除。
移除监听对象的任意事件。
为监听对象新增指定类型的事件监听。
监听对象的任意事件,该对象的任意事件都将触发该监听器的调用。
监听一次事件后将会被移除
Static
get获取事件发射器
Static
get获取事件发射器,当没有找到对应发射器时,返回新建的事件发射器。
Generated using TypeDoc
Script interface for the SubEmittersModule.
The sub-emitters module allows you to spawn particles in child emitters from the positions of particles in the parent system.
This module triggers child particle emission on events such as the birth, death, and collision of particles in the parent system.