Class ParticleRenderModule

粒子系统模块

Hierarchy (view full)

Implements

Constructors

Properties

_app?: App
_destroyed: boolean = false
appRenderIndex: number = 0
batchRendererSet: Map<string, BatchedRenderer> = ...
data: ShallowReactive<{
    [key: string]: any;
}> = ...

Type declaration

  • [key: string]: any
enable?: boolean
extData: {
    [key: string]: any;
} = {}

Type declaration

  • [key: string]: any
instanceId: number = ++AppObject._instanceIdCounter
onSetApp: Signal = ...
moduleName: string = "ParticleRenderModule"

Accessors

  • get app(): App
  • Returns App

  • set app(value): void
  • Parameters

    Returns void

  • get destroyed(): boolean
  • Whether it has been destroyed.

    Returns boolean

  • get enabled(): boolean
  • Indicates whether the component is enabled.

    Returns boolean

  • set enabled(value): void
  • Parameters

    • value: boolean

    Returns void

Methods

  • Parameters

    • opts: {
          disposeWhenEnd?: boolean;
          name?: string;
          parent?: Object3D<Object3DEventMap>;
          position?: [number, number, number] | Vector3;
          rotation?: [number, number, number] | Vector3;
          scale?: number | [number, number, number] | Vector3;
          simulations?: Simulation | Simulation[];
          system: ParticleSystemParameters;
      }
      • Optional disposeWhenEnd?: boolean
      • Optional name?: string
      • Optional parent?: Object3D<Object3DEventMap>
      • Optional position?: [number, number, number] | Vector3
      • Optional rotation?: [number, number, number] | Vector3
      • Optional scale?: number | [number, number, number] | Vector3
      • Optional simulations?: Simulation | Simulation[]
      • system: ParticleSystemParameters

    Returns ParticleEmitter<Object3DEventMap>

  • Parameters

    • system: IParticleSystem
    • Optional parent: Object3D<Object3DEventMap>
    • Optional disposeWhenEnd: boolean

    Returns void

  • Parameters

    • toClassInst: any
    • Optional methodNames: string[]
    • Optional addMethods: string[]
    • Optional filterName: string[]

    Returns void

  • 触发指定事件名称.

    Parameters

    • event: string

      Event name

    • Rest ...data: any

      Data

    Returns boolean

    • Whether the dispatching is successful
  • 返回注册的所有事件名.

    Returns string[]

    所有事件名

  • 确定是否存在事件侦听

    Parameters

    • event: string

      事件名

    Returns boolean

    返回是否存在相应的事件

  • 返回具有指定事件名称的侦听总数.

    Parameters

    • event: string

      Event name

    Returns number

    The count of listeners

  • Parameters

    • url: string
    • Optional opts: {
          crossOrigin?: string;
          disposeWhenEnd?: boolean;
          name?: string;
          onAddSystem?: ((object, system) => any);
          onData?: ((data) => any);
          parent?: Object3D<Object3DEventMap>;
          position?: [number, number, number] | Vector3;
          requestHeader?: {
              [header: string]: string;
          };
          resourcePath?: string;
          rotation?: [number, number, number] | Vector3;
          scale?: number | [number, number, number] | Vector3;
          simulations?: Simulation | Simulation[];
          system?: ParticleSystemParameters;
          urlPath?: string;
          withCredentials?: boolean;
      }
      • Optional crossOrigin?: string
      • Optional disposeWhenEnd?: boolean
      • Optional name?: string
      • Optional onAddSystem?: ((object, system) => any)
          • (object, system): any
          • Parameters

            Returns any

      • Optional onData?: ((data) => any)
          • (data): any
          • Parameters

            • data: any

            Returns any

      • Optional parent?: Object3D<Object3DEventMap>
      • Optional position?: [number, number, number] | Vector3
      • Optional requestHeader?: {
            [header: string]: string;
        }
        • [header: string]: string
      • Optional resourcePath?: string
      • Optional rotation?: [number, number, number] | Vector3
      • Optional scale?: number | [number, number, number] | Vector3
      • Optional simulations?: Simulation | Simulation[]
      • Optional system?: ParticleSystemParameters
      • Optional urlPath?: string
      • Optional withCredentials?: boolean

    Returns Promise<unknown>

  • Parameters

    • obj: Object3D<Object3DEventMap>
    • Optional opts: {
          disposeWhenEnd?: boolean;
          name?: string;
          onAddSystem?: ((object, system) => any);
          parent?: Object3D<Object3DEventMap>;
          position?: [number, number, number] | Vector3;
          rotation?: [number, number, number] | Vector3;
          scale?: number | [number, number, number] | Vector3;
          simulations?: Simulation | Simulation[];
          system?: ParticleSystemParameters;
      }
      • Optional disposeWhenEnd?: boolean
      • Optional name?: string
      • Optional onAddSystem?: ((object, system) => any)
          • (object, system): any
          • Parameters

            Returns any

      • Optional parent?: Object3D<Object3DEventMap>
      • Optional position?: [number, number, number] | Vector3
      • Optional rotation?: [number, number, number] | Vector3
      • Optional scale?: number | [number, number, number] | Vector3
      • Optional simulations?: Simulation | Simulation[]
      • Optional system?: ParticleSystemParameters

    Returns Object3D<Object3DEventMap>

  • 通过事件名移除所有监听.

    Parameters

    • Optional event: string

      Event name, delete all events if not passed

    Returns void

  • Parameters

    Returns void