Options
All
  • Public
  • Public/Protected
  • All
Menu

A Texture behavior that assigns a random texture to each particle from its list. String values will be converted to textures with ParticleUtils.GetTextureFromString.

Example config:

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

Hierarchy

  • RandomTextureBehavior

Implements

Index

Constructors

Properties

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 = 'textureRandom'

Methods

Generated using TypeDoc