Variables
Const Animation
Animation: object = Enum({/*** 播放贴图中的所有帧。*/WholeSheet: 0,/*** 播放贴图中的其中一行动画。*/SingleRow: 1,})
Type declaration
-
SingleRow: number
-
WholeSheet: number
Const ArcMode
ArcMode: object = Enum({/*** 随机位置发射。* @property {Number} Random*/Random: 0,/*** 沿某一方向循环发射,每次循环方向相同。* @property {Number} Loop*/Loop: 1,/*** 循环发射,每次循环方向相反。* @property {Number} PingPong*/PingPong: 2,})
Type declaration
-
Loop: number
-
PingPong: number
-
Random: number
Const CC_USE_WORLD_SPACE
CC_USE_WORLD_SPACE: "CC_USE_WORLD_SPACE" = "CC_USE_WORLD_SPACE"
Const COLOR_OVERTIME_RAND_OFFSET
COLOR_OVERTIME_RAND_OFFSET: 91041 = 91041
Const EmitLocation
EmitLocation: object = Enum({/*** 基础位置发射(仅对 Circle 类型及 Cone 类型的粒子发射器适用)。* @property {Number} Base*/Base: 0,/*** 边框位置发射(仅对 Box 类型及 Circle 类型的粒子发射器适用)。* @property {Number} Edge*/Edge: 1,/*** 表面位置发射(对所有类型的粒子发射器都适用)。* @property {Number} Shell*/Shell: 2,/*** 内部位置发射(对所有类型的粒子发射器都适用)。* @property {Number} Volume*/Volume: 3,})
Type declaration
-
Base: number
-
Edge: number
-
Shell: number
-
Volume: number
Const FORCE_OVERTIME_RAND_OFFSET
FORCE_OVERTIME_RAND_OFFSET: 212165 = 212165
Const LIMIT_VELOCITY_RAND_OFFSET
LIMIT_VELOCITY_RAND_OFFSET: 23541 = 23541
Const Mode
Mode: object = Enum({/*** 网格类型。*/Grid: 0,/*** 精灵类型(暂未支持)。*/// Sprites: 1,})
Const ROTATION_OVERTIME_RAND_OFFSET
ROTATION_OVERTIME_RAND_OFFSET: 125292 = 125292
Const RenderMode
RenderMode: object = Enum({/*** 粒子始终面向摄像机。*/Billboard: 0,/*** 粒子始终面向摄像机但会根据参数进行拉伸。*/StrecthedBillboard: 1,/*** 粒子始终与 XZ 平面平行。*/HorizontalBillboard: 2,/*** 粒子始终与 Y 轴平行且朝向摄像机。*/VerticalBillboard: 3,/*** 粒子保持模型本身状态。*/Mesh: 4,})
Type declaration
-
Billboard: number
-
HorizontalBillboard: number
-
Mesh: number
-
StrecthedBillboard: number
-
VerticalBillboard: number
Const SIZE_OVERTIME_RAND_OFFSET
SIZE_OVERTIME_RAND_OFFSET: 39825 = 39825
Const ShapeType
ShapeType: object = Enum({/*** 立方体类型粒子发射器。* @property {Number} Box*/Box: 0,/*** 圆形粒子发射器。* @property {Number} Circle*/Circle: 1,/*** 圆锥体粒子发射器。* @property {Number} Cone*/Cone: 2,/*** 球体粒子发射器。* @property {Number} Sphere*/Sphere: 3,/*** 半球体粒子发射器。* @property {Number} Hemisphere*/Hemisphere: 4,})
Type declaration
-
Box: number
-
Circle: number
-
Cone: number
-
Hemisphere: number
-
Sphere: number
Const Space
Space: object = Enum({World: 0,Local: 1,Custom: 2,})
Type declaration
-
Custom: number
-
Local: number
-
World: number
Const TEXTURE_ANIMATION_RAND_OFFSET
TEXTURE_ANIMATION_RAND_OFFSET: 90794 = 90794
Const TextureMode
TextureMode: object = Enum({/*** 拉伸填充纹理。*/Stretch: 0,/*** 重复填充纹理。*/Repeat: 1,})
Type declaration
-
Repeat: number
-
Stretch: number
Const TrailMode
TrailMode: object = Enum({/*** 粒子模式<bg>。* 创建一种效果,其中每个粒子在其路径中留下固定的轨迹。*/Particles: 0,/*** 带模式<bg>。* 根据其生命周期创建连接每个粒子的轨迹带。*/Ribbon: 1,})
Type declaration
-
Particles: number
-
Ribbon: number
Const VELOCITY_X_OVERTIME_RAND_OFFSET
VELOCITY_X_OVERTIME_RAND_OFFSET: 197866 = 197866
Const VELOCITY_Y_OVERTIME_RAND_OFFSET
VELOCITY_Y_OVERTIME_RAND_OFFSET: 156497 = 156497
Const VELOCITY_Z_OVERTIME_RAND_OFFSET
VELOCITY_Z_OVERTIME_RAND_OFFSET: 984136 = 984136
Const _intermediArr
_intermediArr: any[] = new Array()
Const _intermediVec
_intermedi
Vec: Vec3 = new Vec3(0, 0, 0)
Const _temp_v3
_temp_
v3: Vec3 = new Vec3()
Const _temp_v3
_temp_
v3: Vec3 = new Vec3()
Const _temp_v3
_temp_
v3: Vec3 = new Vec3()
Const _temp_v3_1
_temp_
v3_1: Vec3 = new Vec3()
Const _unitBoxExtent
_unit
BoxExtent: Vec3 = new Vec3(0.5, 0.5, 0.5)
Const _world_mat
_world_
mat: Mat4 = new Mat4()
贴图动画的播放方式。
textureAnimationModule.Animation