Options
All
  • Public
  • Public/Protected
  • All
Menu

The format of a single animation to be used on a particle.

Hierarchy

  • AnimatedParticleArt

Index

Properties

framerate: number

Framerate for the animation (in frames per second). A value of -1 will tie the framerate to the particle's lifetime so that the animation lasts exactly as long as the particle.

loop?: boolean

If the animation should loop. Defaults to false.

textures: (string | Texture<Resource> | { count: number; texture: string | Texture<Resource> })[]

A list of textures or frame descriptions for duplicated frames. String values will be converted to textures with ParticleUtils.GetTextureFromString. Example of a texture repeated for 5 frames, followed by a second texture for one frame:

[{texture: 'myFirstTex', count: 5}, 'mySecondTex']

Generated using TypeDoc