Class ParticleShapeModule

Shape of the emitter volume, which controls where particles are emitted and their initial direction. 发射体体积的形状,它控制粒子发射的位置和初始方向。

Hierarchy

Constructors

Properties

__class__: "ParticleShapeModule"
_onShapeChanged: any
_onShapeTypeChanged: any
_shapeBox: any
_shapeCircle: any
_shapeCone: any
_shapeEdge: any
_shapeHemisphere: any
_shapeSphere: any
activeShape: ParticleSystemShape

当前使用的发射形状

alignToDirection: boolean

Align particles based on their initial direction of travel. 根据粒子的初始运动方向排列粒子。

Using align to Direction in the Shape module forces the system to be rendered using Local Billboard Alignment. 在形状模块中使用align to Direction迫使系统使用本地看板对齐方式呈现。

angle: number

Angle of the cone.

圆锥的角度。

arc: number

Circle arc angle.

圆弧角。

The mode used for generating particles around the arc.

在弧线周围产生粒子的模式。

arcSpeed: MinMaxCurve

When using one of the animated modes, how quickly to move the emission position around the arc.

当使用一个动画模式时,如何快速移动发射位置周围的弧。

arcSpread: number

Control the gap between emission points around the arc.

控制弧线周围发射点之间的间隙。

box: Vector3

Scale of the box.

盒子的缩放。

enabled: boolean

是否开启

length: number

Length of the cone.

圆锥的长度(高度)。

mesh: Geometry

Mesh to emit particles from.

发射粒子的网格。

Todo

meshMaterialIndex: number

Emit particles from a single material of a mesh.

从一个网格的单一材料发射粒子。

Todo

meshRenderer: any

Mesh3D to emit particles from.

从 Mesh3D 发射粒子。

Todo

meshScale: number

Apply a scaling factor to the mesh used for generating source positions.

对用于生成源位置的网格应用缩放因子。

Todo

Where on the mesh to emit particles from.

从网格的什么地方发射粒子。

Todo

normalOffset: number

Move particles away from the surface of the source mesh.

将粒子从源网格的表面移开。

particleSystem: ParticleSystem3D

粒子系统

radius: number

Radius of the shape.

形状的半径。

The mode used for generating particles around the radius.

在弧线周围产生粒子的模式。

radiusSpeed: MinMaxCurve

When using one of the animated modes, how quickly to move the emission position along the radius.

当使用一个动画模式时,如何快速移动发射位置周围的弧。

radiusSpread: number

Control the gap between emission points around the radius.

控制弧线周围发射点之间的间隙。

randomDirectionAmount: number

Randomizes the starting direction of particles. 随机化粒子的起始方向。

Type of shape to emit particles from. 发射粒子的形状类型。

Type of shape to emit particles from. 发射粒子的形状类型。

skinnedMeshRenderer: any

SkinnedMeshRenderer to emit particles from.

从 SkinnedMeshRenderer 发射粒子。

Todo

sphericalDirectionAmount: number

Spherizes the starting direction of particles. 使粒子的起始方向球面化。

useMeshColors: boolean

Modulate the particle colors with the vertex colors, or the material color if no vertex colors exist.

用顶点颜色调节粒子颜色,如果没有顶点颜色,则调节材质颜色。

Todo

useMeshMaterialIndex: boolean

Emit from a single material, or the whole mesh.

从一个单一的材料,或整个网格发射。

Todo

Accessors

  • get arcSpeedMultiplier(): number
  • A multiplier of the arc speed of the emission shape.

    发射形状的电弧速度的乘数。

    Returns number

  • set arcSpeedMultiplier(v): void
  • Parameters

    • v: number

    Returns void

  • get radiusSpeedMultiplier(): number
  • A multiplier of the radius speed of the emission shape.

    发射形状的半径速度的乘法器。

    Returns number

  • set radiusSpeedMultiplier(v): void
  • Parameters

    • v: number

    Returns void

Methods

  • 将事件广播到下级对象中。

    Type Parameters

    • K extends string

    Parameters

    • type: K

      事件的类型。类型区分大小写。

    • Optional data: any

      事件携带的自定义数据。

    Returns IEvent<any>

    返回广播后的事件。

  • 将事件冒泡到上级对象中。

    Type Parameters

    • K extends string

    Parameters

    • type: K

      事件的类型。类型区分大小写。

    • Optional data: any

      事件携带的自定义数据。

    Returns IEvent<any>

    返回冒泡后的事件。

  • 销毁

    Returns void

  • 发射事件。

    Type Parameters

    • K extends string

    Parameters

    • type: K

      事件的类型。类型区分大小写。

    • Optional data: any

      事件携带的自定义数据。

    • bubbles: boolean = false

      是否向上级报告事件。默认为false

    • broadcast: boolean = false

      是否向下级广播事件。默认为false

    • share: boolean = true

      是否向平级分享事件。默认为true

    Returns IEvent<any>

    返回发射后的事件。

  • 发射事件。

    当事件重复流向一个对象时将不会被处理。

    Type Parameters

    • K extends string

    Parameters

    • event: IEvent<any>

      事件对象

    Returns IEvent<any>

    返回事件是否被处理

  • 返回监听的事件类型列表。

    Type Parameters

    • K extends string

    Returns K[]

  • 向下级广播事件

    Type Parameters

    • K extends string

    Parameters

    Returns void

  • 向上级报告事件

    Type Parameters

    • K extends string

    Parameters

    Returns void

  • 向平级分享事件

    Type Parameters

    • K extends string

    Parameters

    Returns void

  • 处理事件

    Type Parameters

    • K extends string

    Parameters

    Returns void

  • 检查 Event 对象是否为特定事件类型注册了任何侦听器.

    Type Parameters

    • K extends string

    Parameters

    • type: K

      事件的类型。

    Returns boolean

    如果指定类型的侦听器已注册,则值为 true;否则,值为 false。

  • 初始化粒子状态

    Parameters

    Returns void

  • 返回指定事件类型的监听数量。

    Type Parameters

    • K extends string

    Parameters

    • type: K

      事件的类型。

    Returns number

  • 移除监听

    Type Parameters

    • K extends string

    Parameters

    • Optional type: K

      事件的类型。可选。该值为空时所有被监听对象上的监听均将被移除。

    • Optional listener: ((event) => void)

      要删除的监听器对象。可选。该值为空时所有指定类型的监听均将被移除。

        • (event): void
        • Parameters

          Returns void

    • Optional thisObject: any

      监听器的上下文。可选。

    Returns ParticleShapeModule

  • 移除所有监听

    Type Parameters

    • K extends string

    Parameters

    • Optional type: K

      事件的类型。可选。该值为空时所有被监听对象上的监听均将被移除。

    Returns ParticleShapeModule

  • 移除监听对象的任意事件。

    Type Parameters

    • K extends string

    Parameters

    • Optional listener: ((event) => void)

      处理事件的监听器函数。

        • (event): void
        • Parameters

          Returns void

    • Optional thisObject: any

      监听器的上下文。可选。

    Returns ParticleShapeModule

  • 为监听对象新增指定类型的事件监听。

    Type Parameters

    • K extends string

    Parameters

    • type: K

      事件的类型。

    • listener: ((event) => void)

      处理事件的监听器函数。

        • (event): void
        • Parameters

          Returns void

    • Optional thisObject: any

      监听器的上下文。可选。

    • priority: number = 0

      事件监听器的优先级。数字越大,优先级越高。默认为0。

    • once: boolean = false

      值为true时在监听一次事件后该监听器将被移除。默认为false。

    Returns ParticleShapeModule

  • 监听对象的任意事件,该对象的任意事件都将触发该监听器的调用。

    Type Parameters

    • K extends string

    Parameters

    • listener: ((event) => void)

      处理事件的监听器函数。

        • (event): void
        • Parameters

          Returns void

    • Optional thisObject: any

      监听器的上下文。可选。

    • priority: number = 0

      事件监听器的优先级。数字越大,优先级越高。默认为0。

    • once: boolean = false

      值为true时在监听一次事件后该监听器将被移除。默认为false。

    Returns ParticleShapeModule

  • 监听一次事件后将会被移除

    Type Parameters

    • K extends string

    Parameters

    • type: K

      事件的类型。

    • listener: ((event) => void)

      处理事件的侦听器函数。

        • (event): void
        • Parameters

          Returns void

    • Optional thisObject: any

      listener函数作用域

    • priority: number = 0

      事件侦听器的优先级。数字越大,优先级越高。默认优先级为 0。

    Returns ParticleShapeModule

  • 更新

    Parameters

    • _interval: number

    Returns void

  • 更新粒子状态

    Parameters

    Returns void

Generated using TypeDoc