Interface ParticleModuleOption

interface ParticleModuleOption {
    disposeWhenEnd?: boolean;
    isCloneRes?: boolean;
    name?: string;
    onAddSystem?: ((object, system) => any);
    position?: [number, number, number] | Vector3;
    resource?: Object3D<Object3DEventMap>;
    rotation?: [number, number, number] | Vector3;
    scale?: number | [number, number, number] | Vector3;
    simulations?: Simulation | Simulation[];
    system?: ParticleSystemParameters;
}

Properties

disposeWhenEnd?: boolean

当结束时自动删除,默认为true

isCloneRes?: boolean

克隆资源 默认是

name?: string

名称

onAddSystem?: ((object, system) => any)

加载粒子系统前回调

Type declaration

    • (object, system): any
    • 加载粒子系统前回调

      Parameters

      Returns any

position?: [number, number, number] | Vector3

位置

resource?: Object3D<Object3DEventMap>

加载粒子资源

rotation?: [number, number, number] | Vector3

旋转

scale?: number | [number, number, number] | Vector3

缩放

simulations?: Simulation | Simulation[]

粒子模拟行为

粒子系统参数