| Package | laya.d3.core.particleShuriKen |
| Class | public class ShurikenParticleSystem |
| Inheritance | ShurikenParticleSystem GeometryFilter EventDispatcher Object |
| Implements | IRenderable, laya.d3.core.IClone |
ShurikenParticleSystem 类用于创建3D粒子数据模板。
| Property | Defined By | ||
|---|---|---|---|
| aliveParticleCount : int [read-only]
粒子存活个数。
| ShurikenParticleSystem | ||
| autoRandomSeed : Boolean 是否使用随机种子。 | ShurikenParticleSystem | ||
| colorOverLifetime : ColorOverLifetime
获取生命周期颜色,注意:如修改该值的某些属性,需重新赋值此属性才可生效。
| ShurikenParticleSystem | ||
![]() | destroyed : Boolean [read-only]
获取是否已销毁。
| GeometryFilter | |
| duration : Number 粒子运行的总时长,单位为秒。 | ShurikenParticleSystem | ||
| emission : Emission
获取发射器。
| ShurikenParticleSystem | ||
| emissionTime : int [read-only]
获取一次循环内的累计时间。
| ShurikenParticleSystem | ||
| gravityModifier : Number 重力敏感度。 | ShurikenParticleSystem | ||
| isAlive : Boolean [read-only]
是否存活。
| ShurikenParticleSystem | ||
| isEmitting : Boolean [read-only]
是否正在发射。
| ShurikenParticleSystem | ||
| isPaused : Boolean [read-only]
是否已暂停。
| ShurikenParticleSystem | ||
| isPerformanceMode : Boolean 是否为性能模式,性能模式下会延迟粒子释放。 | ShurikenParticleSystem | ||
| isPlaying : Boolean [read-only]
是否正在播放。
| ShurikenParticleSystem | ||
| looping : Boolean 是否循环。 | ShurikenParticleSystem | ||
| maxParticles : int 获取最大粒子数。 | ShurikenParticleSystem | ||
| _originalBoundingBox : BoundBox [override] [read-only]
| ShurikenParticleSystem | ||
| _originalBoundingBoxCorners : Array [override] [read-only]
| ShurikenParticleSystem | ||
| _originalBoundingSphere : BoundSphere [override] [read-only]
| ShurikenParticleSystem | ||
| playOnAwake : Boolean 是否自动开始。 | ShurikenParticleSystem | ||
| prewarm : Boolean 是否预热。暂不支持 | ShurikenParticleSystem | ||
| randomizeRotationDirection : Number 随机旋转方向,范围为0.0到1.0 | ShurikenParticleSystem | ||
| randomSeed : Uint32Array 随机种子,注:play()前设置有效。 | ShurikenParticleSystem | ||
| rotationOverLifetime : RotationOverLifetime
获取生命周期旋转,注意:如修改该值的某些属性,需重新赋值此属性才可生效。
| ShurikenParticleSystem | ||
| scaleMode : int 缩放模式,0为Hiercachy,1为Local,2为World。暂不支持1,2 | ShurikenParticleSystem | ||
| shape : BaseShape
获取形状。
| ShurikenParticleSystem | ||
| simulationSpace : int 模拟器空间,0为World,1为Local。暂不支持Custom。 | ShurikenParticleSystem | ||
| sizeOverLifetime : SizeOverLifetime
获取生命周期尺寸,注意:如修改该值的某些属性,需重新赋值此属性才可生效。
| ShurikenParticleSystem | ||
| startColorConstant : Vector4 开始颜色,0模式。 | ShurikenParticleSystem | ||
| startColorConstantMax : Vector4 最大开始颜色,1模式。 | ShurikenParticleSystem | ||
| startColorConstantMin : Vector4 最小开始颜色,1模式。 | ShurikenParticleSystem | ||
| startColorType : int 开始颜色模式,0为恒定颜色,2为两个恒定颜色的随机插值,缺少2种模式。 | ShurikenParticleSystem | ||
| startDelay : Number 开始播放延迟,不能和prewarm一起使用。 | ShurikenParticleSystem | ||
| startDelayMax : Number 开始播放最大延迟,不能和prewarm一起使用。 | ShurikenParticleSystem | ||
| startDelayMin : Number 开始播放最小延迟,不能和prewarm一起使用。 | ShurikenParticleSystem | ||
| startDelayType : int 开始延迟类型,0为常量模式,1为随机随机双常量模式,不能和prewarm一起使用。 | ShurikenParticleSystem | ||
| startLifetimeConstant : Number
获取开始生命周期,0模式,单位为秒。
| ShurikenParticleSystem | ||
| startLifetimeConstantMax : Number
获取最大开始生命周期,2模式,单位为秒。
| ShurikenParticleSystem | ||
| startLifetimeConstantMin : Number
获取最小开始生命周期,2模式,单位为秒。
| ShurikenParticleSystem | ||
| startLifeTimeGradient : GradientDataNumber
获取开始渐变生命周期,1模式,单位为秒。
| ShurikenParticleSystem | ||
| startLifeTimeGradientMax : GradientDataNumber
获取开始渐变最大生命周期,3模式,单位为秒。
| ShurikenParticleSystem | ||
| startLifeTimeGradientMin : GradientDataNumber
获取开始渐变最小生命周期,3模式,单位为秒。
| ShurikenParticleSystem | ||
| startLifetimeType : int
获取开始生命周期模式,0为固定时间,1为渐变时间,2为两个固定之间的随机插值,3为两个渐变时间的随机插值。
| ShurikenParticleSystem | ||
| startRotationConstant : Number 开始旋转,0模式。 | ShurikenParticleSystem | ||
| startRotationConstantMax : Number 最大开始旋转,1模式。 | ShurikenParticleSystem | ||
| startRotationConstantMaxSeparate : Vector3 最大开始三维旋转,1模式。 | ShurikenParticleSystem | ||
| startRotationConstantMin : Number 最小开始旋转,1模式。 | ShurikenParticleSystem | ||
| startRotationConstantMinSeparate : Vector3 最小开始三维旋转,1模式。 | ShurikenParticleSystem | ||
| startRotationConstantSeparate : Vector3 开始三维旋转,0模式。 | ShurikenParticleSystem | ||
| startRotationType : int 开始旋转模式,0为恒定尺寸,2为两个恒定旋转的随机插值,缺少2种模式,和对应的四种3D模式。 | ShurikenParticleSystem | ||
| startSizeConstant : Number 开始尺寸,0模式。 | ShurikenParticleSystem | ||
| startSizeConstantMax : Number 最大开始尺寸,2模式。 | ShurikenParticleSystem | ||
| startSizeConstantMaxSeparate : Vector3 最大三维开始尺寸,2模式。 | ShurikenParticleSystem | ||
| startSizeConstantMin : Number 最小开始尺寸,2模式。 | ShurikenParticleSystem | ||
| startSizeConstantMinSeparate : Vector3 最小三维开始尺寸,2模式。 | ShurikenParticleSystem | ||
| startSizeConstantSeparate : Vector3 开始三维尺寸,0模式。 | ShurikenParticleSystem | ||
| startSizeType : int 开始尺寸模式,0为恒定尺寸,2为两个恒定尺寸的随机插值。缺少1、3模式和对应的二种3D模式 | ShurikenParticleSystem | ||
| startSpeedConstant : Number 开始速度,0模式。 | ShurikenParticleSystem | ||
| startSpeedConstantMax : Number 最大开始速度,1模式。 | ShurikenParticleSystem | ||
| startSpeedConstantMin : Number 最小开始速度,1模式。 | ShurikenParticleSystem | ||
| startSpeedType : int 开始速度模式,0为恒定速度,2为两个恒定速度的随机插值。缺少1、3模式 | ShurikenParticleSystem | ||
| textureSheetAnimation : TextureSheetAnimation
获取生命周期纹理动画,注意:如修改该值的某些属性,需重新赋值此属性才可生效。
| ShurikenParticleSystem | ||
| threeDStartRotation : Boolean 3D开始旋转,暂不支持 | ShurikenParticleSystem | ||
| threeDStartSize : Boolean 开始尺寸是否为3D模式。 | ShurikenParticleSystem | ||
| triangleCount : int [read-only] | ShurikenParticleSystem | ||
| velocityOverLifetime : VelocityOverLifetime
获取生命周期速度,注意:如修改该值的某些属性,需重新赋值此属性才可生效。
| ShurikenParticleSystem | ||
| _vertexBufferCount : int [read-only] | ShurikenParticleSystem | ||
| Method | Defined By | ||
|---|---|---|---|
| ShurikenParticleSystem | |||
_beforeRender(state:RenderState):Boolean | ShurikenParticleSystem | ||
| ShurikenParticleSystem | |||
_getVertexBuffer(index:int = 0):VertexBuffer3D | ShurikenParticleSystem | ||
_renderRuntime(conchGraphics3D:*, renderElement:RenderElement, state:RenderState):void | ShurikenParticleSystem | ||
| ShurikenParticleSystem | |||
| ShurikenParticleSystem | |||
clone():*
克隆。
| ShurikenParticleSystem | ||
cloneTo(destObject:*):void
克隆。
| ShurikenParticleSystem | ||
emit(time:Number):Boolean
发射一个粒子。
| ShurikenParticleSystem | ||
![]() | event(type:String, data:* = null):Boolean
派发事件。
| EventDispatcher | |
![]() | hasListener(type:String):Boolean
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。
| EventDispatcher | |
![]() | isMouseEvent(type:String):Boolean
检测指定事件类型是否是鼠标事件。
| EventDispatcher | |
![]() | off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher
从 EventDispatcher 对象中删除侦听器。
| EventDispatcher | |
![]() | offAll(type:String = null):EventDispatcher
从 EventDispatcher 对象中删除指定事件类型的所有侦听器。
| EventDispatcher | |
![]() | on(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher
使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知。
| EventDispatcher | |
![]() | once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher
使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知,此侦听事件响应一次后自动移除。
| EventDispatcher | |
pause():void
暂停发射粒子。
| ShurikenParticleSystem | ||
play():void
开始发射粒子。
| ShurikenParticleSystem | ||
simulate(time:Number, restart:Boolean = true):void
通过指定时间增加粒子播放进度,并暂停播放。
| ShurikenParticleSystem | ||
stop():void
停止发射粒子。
| ShurikenParticleSystem | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| 完成一次循环时调度。 | ShurikenParticleSystem | |||
| 暂停时调度。 | ShurikenParticleSystem | |||
| 开始播放时调度。 | ShurikenParticleSystem | |||
| 停止时调度。 | ShurikenParticleSystem | |||
| _originalBoundingBox | property |
_originalBoundingBox:BoundBox [read-only] [override]
public function get _originalBoundingBox():BoundBox| _originalBoundingBoxCorners | property |
_originalBoundingBoxCorners:Array [read-only] [override]
public function get _originalBoundingBoxCorners():Array| _originalBoundingSphere | property |
_originalBoundingSphere:BoundSphere [read-only] [override]
public function get _originalBoundingSphere():BoundSphere| _vertexBufferCount | property |
_vertexBufferCount:int [read-only] public function get _vertexBufferCount():int| aliveParticleCount | property |
aliveParticleCount:int [read-only] 粒子存活个数。
public function get aliveParticleCount():int| autoRandomSeed | property |
public var autoRandomSeed:Boolean是否使用随机种子。
| colorOverLifetime | property |
colorOverLifetime:ColorOverLifetime获取生命周期颜色,注意:如修改该值的某些属性,需重新赋值此属性才可生效。
public function get colorOverLifetime():ColorOverLifetime public function set colorOverLifetime(value:ColorOverLifetime):void| duration | property |
public var duration:Number粒子运行的总时长,单位为秒。
| emission | property |
emission:Emission获取发射器。
public function get emission():Emission public function set emission(value:Emission):void| emissionTime | property |
emissionTime:int [read-only] 获取一次循环内的累计时间。
public function get emissionTime():int| gravityModifier | property |
public var gravityModifier:Number重力敏感度。
| isAlive | property |
isAlive:Boolean [read-only] 是否存活。
public function get isAlive():Boolean| isEmitting | property |
isEmitting:Boolean [read-only] 是否正在发射。
public function get isEmitting():Boolean| isPaused | property |
isPaused:Boolean [read-only] 是否已暂停。
public function get isPaused():Boolean| isPerformanceMode | property |
public var isPerformanceMode:Boolean是否为性能模式,性能模式下会延迟粒子释放。
| isPlaying | property |
isPlaying:Boolean [read-only] 是否正在播放。
public function get isPlaying():Boolean| looping | property |
public var looping:Boolean是否循环。
| maxParticles | property |
maxParticles:int获取最大粒子数。
public function get maxParticles():int public function set maxParticles(value:int):void| playOnAwake | property |
public var playOnAwake:Boolean是否自动开始。
| prewarm | property |
public var prewarm:Boolean是否预热。暂不支持
| randomizeRotationDirection | property |
public var randomizeRotationDirection:Number随机旋转方向,范围为0.0到1.0
| randomSeed | property |
public var randomSeed:Uint32Array随机种子,注:play()前设置有效。
| rotationOverLifetime | property |
rotationOverLifetime:RotationOverLifetime获取生命周期旋转,注意:如修改该值的某些属性,需重新赋值此属性才可生效。
public function get rotationOverLifetime():RotationOverLifetime public function set rotationOverLifetime(value:RotationOverLifetime):void| scaleMode | property |
public var scaleMode:int缩放模式,0为Hiercachy,1为Local,2为World。暂不支持1,2
| shape | property |
shape:BaseShape获取形状。
public function get shape():BaseShape public function set shape(value:BaseShape):void| simulationSpace | property |
public var simulationSpace:int模拟器空间,0为World,1为Local。暂不支持Custom。
| sizeOverLifetime | property |
sizeOverLifetime:SizeOverLifetime获取生命周期尺寸,注意:如修改该值的某些属性,需重新赋值此属性才可生效。
public function get sizeOverLifetime():SizeOverLifetime public function set sizeOverLifetime(value:SizeOverLifetime):void| startColorConstant | property |
public var startColorConstant:Vector4开始颜色,0模式。
| startColorConstantMax | property |
public var startColorConstantMax:Vector4最大开始颜色,1模式。
| startColorConstantMin | property |
public var startColorConstantMin:Vector4最小开始颜色,1模式。
| startColorType | property |
public var startColorType:int开始颜色模式,0为恒定颜色,2为两个恒定颜色的随机插值,缺少2种模式。
| startDelay | property |
public var startDelay:Number开始播放延迟,不能和prewarm一起使用。
| startDelayMax | property |
public var startDelayMax:Number开始播放最大延迟,不能和prewarm一起使用。
| startDelayMin | property |
public var startDelayMin:Number开始播放最小延迟,不能和prewarm一起使用。
| startDelayType | property |
public var startDelayType:int开始延迟类型,0为常量模式,1为随机随机双常量模式,不能和prewarm一起使用。
| startLifetimeConstant | property |
startLifetimeConstant:Number获取开始生命周期,0模式,单位为秒。
public function get startLifetimeConstant():Number public function set startLifetimeConstant(value:Number):void| startLifetimeConstantMax | property |
startLifetimeConstantMax:Number获取最大开始生命周期,2模式,单位为秒。
public function get startLifetimeConstantMax():Number public function set startLifetimeConstantMax(value:Number):void| startLifetimeConstantMin | property |
startLifetimeConstantMin:Number获取最小开始生命周期,2模式,单位为秒。
public function get startLifetimeConstantMin():Number public function set startLifetimeConstantMin(value:Number):void| startLifeTimeGradient | property |
startLifeTimeGradient:GradientDataNumber获取开始渐变生命周期,1模式,单位为秒。
public function get startLifeTimeGradient():GradientDataNumber public function set startLifeTimeGradient(value:GradientDataNumber):void| startLifeTimeGradientMax | property |
startLifeTimeGradientMax:GradientDataNumber获取开始渐变最大生命周期,3模式,单位为秒。
public function get startLifeTimeGradientMax():GradientDataNumber public function set startLifeTimeGradientMax(value:GradientDataNumber):void| startLifeTimeGradientMin | property |
startLifeTimeGradientMin:GradientDataNumber获取开始渐变最小生命周期,3模式,单位为秒。
public function get startLifeTimeGradientMin():GradientDataNumber public function set startLifeTimeGradientMin(value:GradientDataNumber):void| startLifetimeType | property |
startLifetimeType:int获取开始生命周期模式,0为固定时间,1为渐变时间,2为两个固定之间的随机插值,3为两个渐变时间的随机插值。
public function get startLifetimeType():int public function set startLifetimeType(value:int):void| startRotationConstant | property |
public var startRotationConstant:Number开始旋转,0模式。
| startRotationConstantMax | property |
public var startRotationConstantMax:Number最大开始旋转,1模式。
| startRotationConstantMaxSeparate | property |
public var startRotationConstantMaxSeparate:Vector3最大开始三维旋转,1模式。
| startRotationConstantMin | property |
public var startRotationConstantMin:Number最小开始旋转,1模式。
| startRotationConstantMinSeparate | property |
public var startRotationConstantMinSeparate:Vector3最小开始三维旋转,1模式。
| startRotationConstantSeparate | property |
public var startRotationConstantSeparate:Vector3开始三维旋转,0模式。
| startRotationType | property |
public var startRotationType:int开始旋转模式,0为恒定尺寸,2为两个恒定旋转的随机插值,缺少2种模式,和对应的四种3D模式。
| startSizeConstant | property |
public var startSizeConstant:Number开始尺寸,0模式。
| startSizeConstantMax | property |
public var startSizeConstantMax:Number最大开始尺寸,2模式。
| startSizeConstantMaxSeparate | property |
public var startSizeConstantMaxSeparate:Vector3最大三维开始尺寸,2模式。
| startSizeConstantMin | property |
public var startSizeConstantMin:Number最小开始尺寸,2模式。
| startSizeConstantMinSeparate | property |
public var startSizeConstantMinSeparate:Vector3最小三维开始尺寸,2模式。
| startSizeConstantSeparate | property |
public var startSizeConstantSeparate:Vector3开始三维尺寸,0模式。
| startSizeType | property |
public var startSizeType:int开始尺寸模式,0为恒定尺寸,2为两个恒定尺寸的随机插值。缺少1、3模式和对应的二种3D模式
| startSpeedConstant | property |
public var startSpeedConstant:Number开始速度,0模式。
| startSpeedConstantMax | property |
public var startSpeedConstantMax:Number最大开始速度,1模式。
| startSpeedConstantMin | property |
public var startSpeedConstantMin:Number最小开始速度,1模式。
| startSpeedType | property |
public var startSpeedType:int开始速度模式,0为恒定速度,2为两个恒定速度的随机插值。缺少1、3模式
| textureSheetAnimation | property |
textureSheetAnimation:TextureSheetAnimation获取生命周期纹理动画,注意:如修改该值的某些属性,需重新赋值此属性才可生效。
public function get textureSheetAnimation():TextureSheetAnimation public function set textureSheetAnimation(value:TextureSheetAnimation):void| threeDStartRotation | property |
public var threeDStartRotation:Boolean3D开始旋转,暂不支持
| threeDStartSize | property |
public var threeDStartSize:Boolean开始尺寸是否为3D模式。
| triangleCount | property |
triangleCount:int [read-only] public function get triangleCount():int| velocityOverLifetime | property |
velocityOverLifetime:VelocityOverLifetime获取生命周期速度,注意:如修改该值的某些属性,需重新赋值此属性才可生效。
public function get velocityOverLifetime():VelocityOverLifetime public function set velocityOverLifetime(value:VelocityOverLifetime):void| ShurikenParticleSystem | () | Constructor |
public function ShurikenParticleSystem(owner:ShuriKenParticle3D)owner:ShuriKenParticle3D |
| _beforeRender | () | method |
| _getIndexBuffer | () | method |
| _getVertexBuffer | () | method |
public function _getVertexBuffer(index:int = 0):VertexBuffer3DParameters
index:int (default = 0) |
VertexBuffer3D |
| _renderRuntime | () | method |
public function _renderRuntime(conchGraphics3D:*, renderElement:RenderElement, state:RenderState):voidParameters
conchGraphics3D:* | |
renderElement:RenderElement | |
state:RenderState |
| addNewParticlesToVertexBuffer | () | method |
public function addNewParticlesToVertexBuffer():void| addParticle | () | method |
public function addParticle(position:Vector3, direction:Vector3, time:Number):BooleanParameters
position:Vector3 | |
direction:Vector3 | |
time:Number |
Boolean |
| clone | () | method |
public function clone():*克隆。
Returns* — 克隆副本。
|
| cloneTo | () | method |
public function cloneTo(destObject:*):void克隆。
Parameters
destObject:* — 克隆源。
|
| emit | () | method |
public function emit(time:Number):Boolean发射一个粒子。
Parameters
time:Number |
Boolean |
| pause | () | method |
public function pause():void暂停发射粒子。
| play | () | method |
public function play():void开始发射粒子。
| simulate | () | method |
public function simulate(time:Number, restart:Boolean = true):void通过指定时间增加粒子播放进度,并暂停播放。
Parameters
time:Number — 进度时间.如果restart为true,粒子播放时间会归零后再更新进度。
| |
restart:Boolean (default = true) — 是否重置播放状态。
|
| stop | () | method |
public function stop():void停止发射粒子。
| complete | Event |
| paused | Event |
| played | Event |
| stopped | Event |