Skip to content

VfxEmissionSurfaceData

Value struct

Class Documentation

Edit documentation

Spreads an emitter's particles over a surface instead of a single point. Set through VfxEmitterDefinitionData.EmissionSurfaceDefinition.

Only complex emitters read it. A simple emitter ignores the surface, and a component emitter uses its own emission sources instead.

Each time a particle is born, the emitter works out the birth position, birth velocity and birth acceleration as usual and then applies the surface in two steps:

  1. EmissionSurface picks a random point on its surface and adds it to the birth position. The point is an offset, not a replacement. It can also turn the particle along the surface: the birth velocity and the birth acceleration each keep their length and take the direction of the surface normal at that point. Nothing is blended, and a vector of length zero stays zero.
  2. ParticleSpawnDataGenerator then adds its own offset, and scales the emitter's emission rate.

The two properties are independent. Either can be set alone, and both apply when both are set. A surface that sets neither does nothing.

When the surface cannot give a point, because its mesh did not load or the effect is bound to nothing, the particle is still born, at its unchanged position and with its unchanged velocity.

Properties

AnimationName

String = ""
Removed in 15.22
Add documentation

No documentation available yet. Click "Add documentation" to contribute!

EmissionSource

U8 = 0
Removed in 15.22 15.18
Add documentation

No documentation available yet. Click "Add documentation" to contribute!

JointMask

List2<Hash> = []
Removed in 15.22 15.19
Add documentation

No documentation available yet. Click "Add documentation" to contribute!

Submeshes

List<Hash> = []
Removed in 15.22
Add documentation

No documentation available yet. Click "Add documentation" to contribute!

maxJointWeights

U16 = 4
Removed in 15.22
Add documentation

No documentation available yet. Click "Add documentation" to contribute!

meshName

String = ""
Removed in 15.22
Add documentation

No documentation available yet. Click "Add documentation" to contribute!

meshScale

F32 = 1
Removed in 15.22
Add documentation

No documentation available yet. Click "Add documentation" to contribute!

skeletonName

String = ""
Removed in 15.22
Add documentation

No documentation available yet. Click "Add documentation" to contribute!

useAvatarPose

Bool = false
Removed in 15.18
Add documentation

No documentation available yet. Click "Add documentation" to contribute!

useSurfaceNormalForBirthPhysics

Bool = true
Removed in 15.22
Add documentation

No documentation available yet. Click "Add documentation" to contribute!

Referenced by 1 class · 1 property