Package | laya.particle.emitter |
Class | public class EmitterBase |
Inheritance | EmitterBase Object |
EmitterBase
类是粒子发射器类
Property | Defined By | ||
---|---|---|---|
emissionRate : Number
获取粒子发射速率
| EmitterBase | ||
minEmissionTime : Number
发射粒子最小时间间隔
| EmitterBase | ||
particleTemplate : ParticleTemplateBase [write-only]
设置粒子粒子模板
| EmitterBase |
Property | Defined By | ||
---|---|---|---|
_emissionRate : Number = 60
粒子发射速率
| EmitterBase | ||
_emissionTime : Number = 0
当前剩余发射时间
| EmitterBase | ||
_frameTime : Number = 0
积累的帧时间
| EmitterBase |
Method | Defined By | ||
---|---|---|---|
advanceTime(passedTime:Number = 1):void
时钟前进
| EmitterBase | ||
clear():void
清理当前的活跃粒子
| EmitterBase | ||
emit():void
发射一个粒子
| EmitterBase | ||
start(duration:Number):void
开始发射粒子
| EmitterBase | ||
stop():void
停止发射粒子
| EmitterBase |
_emissionRate | property |
protected var _emissionRate:Number = 60
粒子发射速率
_emissionTime | property |
protected var _emissionTime:Number = 0
当前剩余发射时间
_frameTime | property |
protected var _frameTime:Number = 0
积累的帧时间
emissionRate | property |
emissionRate:Number
获取粒子发射速率
public function get emissionRate():Number
public function set emissionRate(value:Number):void
minEmissionTime | property |
public var minEmissionTime:Number
发射粒子最小时间间隔
particleTemplate | property |
particleTemplate:ParticleTemplateBase
[write-only] 设置粒子粒子模板
public function set particleTemplate(value:ParticleTemplateBase):void
advanceTime | () | method |
public function advanceTime(passedTime:Number = 1):void
时钟前进
Parameters
passedTime:Number (default = 1 ) — 前进时间
|
clear | () | method |
public function clear():void
清理当前的活跃粒子
emit | () | method |
public function emit():void
发射一个粒子
start | () | method |
public function start(duration:Number):void
开始发射粒子
Parameters
duration:Number (default = NaN ) — 发射持续的时间(秒)
|
stop | () | method |
public function stop():void
停止发射粒子