Talos docs

ParticlesComponent

Since 0.6
Plain text

Signature

export interface ParticlesComponent {
  type: "particles"
  preset: ParticlePreset
  rate: number
  color?: string
  /** A key of scene.assets whose kind is "material": a material file with a `shader` the sprites draw with, on both renderers. */
  material?: string
}

Import: import type { ParticlesComponent } from "@argus/gameplay"

Members

MemberSignatureDescription
typetype: "particles"
presetpreset: ParticlePreset
raterate: number
colorcolor?: string
materialmaterial?: stringA key of scene.assets whose kind is "material": a material file with a shader the sprites draw with, on both renderers.