Talos docs

ParticlesComponent

Since 0.6Changed in 0.7
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
  /** A particle effect (docs/VFX.md): an `effect` asset id, a `*.vfx.json` path, `"builtin:<preset>"` or `"builtin:fx/<preset>"` (the preset library). When set, `preset` and `rate` are not used. */
  effect?: string
  /** Values for the effect's declared params. */
  params?: Record<string, unknown>
}

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.
effecteffect?: stringA particle effect (docs/VFX.md): an effect asset id, a *.vfx.json path, "builtin:<preset>" or "builtin:fx/<preset>" (the preset library). When set, preset and rate are not used.
paramsparams?: Record<string, unknown>Values for the effect's declared params.