Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TextureAnimationModule

Hierarchy

  • ParticleModuleBase
    • TextureAnimationModule

Implements

  • IParticleModule

Index

Properties

Private _enable

_enable: boolean = false

Private _flipU

_flipU: number = 0

Private _flipV

_flipV: number = 0

Private _mode

_mode: number = Mode.Grid

Private _numTilesX

_numTilesX: number = 0

Private _numTilesY

_numTilesY: number = 0

Private _uvChannelMask

_uvChannelMask: number = -1

animation

animation: number = Animation.WholeSheet

动画播放方式 Animation

cycleCount

cycleCount: number = 0

一个生命周期内播放循环的次数。

frameOverTime

frameOverTime: CurveRange = new CurveRange()

一个周期内动画播放的帧与时间变化曲线。

name

name: string = PARTICLE_MODULE_NAME.TEXTURE

needAnimate

needAnimate: boolean = true

needUpdate

needUpdate: boolean = false

randomRow

randomRow: boolean = false

随机从动画贴图中选择一行以生成动画。
此选项仅在动画播放方式为 SingleRow 时生效。

rowIndex

rowIndex: number = 0

从动画贴图中选择特定行以生成动画。
此选项仅在动画播放方式为 SingleRow 时且禁用 randomRow 时可用。

startFrame

startFrame: CurveRange = new CurveRange()

从第几帧开始播放,时间为整个粒子系统的生命周期。

target

target: IParticleSystemRenderer | null = null

Accessors

enable

  • get enable(): boolean
  • set enable(val: boolean): void

flipV

  • get flipV(): number
  • set flipV(val: number): void

mode

  • get mode(): number
  • set mode(val: number): void

numTilesX

  • get numTilesX(): number
  • set numTilesX(val: number): void

numTilesY

  • get numTilesY(): number
  • set numTilesY(val: number): void

uvChannelMask

  • get uvChannelMask(): number
  • set uvChannelMask(val: number): void

Methods

animate

  • animate(p: Particle, dt: number): void

bindTarget

  • bindTarget(target: IParticleSystemRenderer): void

init

  • init(p: Particle): void

update

  • update(space: number, trans: Mat4): void

Generated using TypeDoc