Variables
Const Animation
Animation: { SingleRow: number; WholeSheet: number } = Enum({/*** 播放贴图中的所有帧。*/WholeSheet: 0,/*** 播放贴图中的其中一行动画。*/SingleRow: 1,})
Type declaration
-
SingleRow: number
-
WholeSheet: number
Const ArcMode
ArcMode: { Loop: number; PingPong: number; Random: number } = Enum({/*** 随机位置发射。*/Random: 0,/*** 沿某一方向循环发射,每次循环方向相同。*/Loop: 1,/*** 循环发射,每次循环方向相反。*/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: number = ModuleRandSeed.COLOR
Const EmitLocation
EmitLocation: { Base: number; Edge: number; Shell: number; Volume: number } = Enum({/*** 基础位置发射(仅对 Circle 类型及 Cone 类型的粒子发射器适用)。*/Base: 0,/*** 边框位置发射(仅对 Box 类型及 Circle 类型的粒子发射器适用)。*/Edge: 1,/*** 表面位置发射(对所有类型的粒子发射器都适用)。*/Shell: 2,/*** 内部位置发射(对所有类型的粒子发射器都适用)。*/Volume: 3,})
Type declaration
-
Base: number
-
Edge: number
-
Shell: number
-
Volume: number
Const FORCE_OVERTIME_RAND_OFFSET
FORCE_OVERTIME_RAND_OFFSET: number = ModuleRandSeed.FORCE
Const LIMIT_VELOCITY_RAND_OFFSET
LIMIT_VELOCITY_RAND_OFFSET: number = ModuleRandSeed.LIMIT
Const Mode
Mode: { Grid: number } = Enum({/*** 网格类型。*/Grid: 0,/*** 精灵类型(暂未支持)。*/// Sprites: 1,})
Const ROTATION_OVERTIME_RAND_OFFSET
ROTATION_OVERTIME_RAND_OFFSET: number = ModuleRandSeed.ROTATION
Const RenderMode
RenderMode: { Billboard: number; HorizontalBillboard: number; Mesh: number; StrecthedBillboard: number; VerticalBillboard: number } = 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: number = ModuleRandSeed.SIZE
Const ShapeType
ShapeType: { Box: number; Circle: number; Cone: number; Hemisphere: number; Sphere: number } = Enum({/*** 立方体类型粒子发射器。*/Box: 0,/*** 圆形粒子发射器。*/Circle: 1,/*** 圆锥体粒子发射器。*/Cone: 2,/*** 球体粒子发射器。*/Sphere: 3,/*** 半球体粒子发射器。*/Hemisphere: 4,})
Type declaration
-
Box: number
-
Circle: number
-
Cone: number
-
Hemisphere: number
-
Sphere: number
Const Space
Space: { Custom: number; Local: number; World: number } = Enum({World: 0,Local: 1,Custom: 2,})
Type declaration
-
Custom: number
-
Local: number
-
World: number
Const TEXTURE_ANIMATION_RAND_OFFSET
TEXTURE_ANIMATION_RAND_OFFSET: number = ModuleRandSeed.TEXTURE
Const TextureMode
TextureMode: { Stretch: number } = Enum({/*** 拉伸填充纹理。*/Stretch: 0,/*** 重复填充纹理。*/// Repeat: 1,})
Const TrailMode
TrailMode: { Particles: number } = Enum({/*** 粒子模式<bg>。* 创建一种效果,其中每个粒子在其路径中留下固定的轨迹。*/Particles: 0,/*** 带模式<bg>。* 根据其生命周期创建连接每个粒子的轨迹带。*/// Ribbon: 1,})
Const VELOCITY_X_OVERTIME_RAND_OFFSET
VELOCITY_X_OVERTIME_RAND_OFFSET: number = ModuleRandSeed.VELOCITY_X
Const VELOCITY_Y_OVERTIME_RAND_OFFSET
VELOCITY_Y_OVERTIME_RAND_OFFSET: number = ModuleRandSeed.VELOCITY_Y
Const VELOCITY_Z_OVERTIME_RAND_OFFSET
VELOCITY_Z_OVERTIME_RAND_OFFSET: number = ModuleRandSeed.VELOCITY_Z
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()
Const _world_rol
_world_
rol: Quat = new Quat()
贴图动画的播放方式。