Options
All
  • Public
  • Public/Protected
  • All
Menu

A Texture behavior that assigns a texture to each particle from its list, in order, before looping around to the first texture again. String values will be converted to textures with ParticleUtils.GetTextureFromString.

Example config:

{
type: 'textureOrdered',
config: {
textures: ["myTex1Id", "myTex2Id", "myTex3Id", "myTex4Id"],
}
}

Hierarchy

  • OrderedTextureBehavior

Implements

Index

Constructors

Properties

index: number
order: BehaviorOrder = BehaviorOrder.Normal

Order in which the behavior will be handled. Lower numbers are handled earlier, with an order of 0 getting special treatment before the Emitter's transformation is applied.

textures: Texture<Resource>[]
editorConfig: BehaviorEditorConfig = null
type: string = 'textureOrdered'

Methods

Generated using TypeDoc