CpuParticles3D
A CPU-based 3D particle emitter.
A CPU-based 3D particle emitter.
CPU-based 3D particle node used to create a variety of particle systems and effects.
See also GpuParticles3D, which provides the same functionality with hardware acceleration, but may not run on older devices.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
CpuParticles3DConstructor
public CpuParticles3D();Properties77
AmountProperty
public int Amount { get; set; }Number of particles emitted in one emission cycle.
AngleCurveProperty
public Curve AngleCurve { get; set; }Each particle's rotation will be animated along this Curve. Should be a unit Curve.
AngleMaxProperty
public float AngleMax { get; set; }Maximum angle.
AngleMinProperty
public float AngleMin { get; set; }Minimum angle.
AngularVelocityCurveProperty
public Curve AngularVelocityCurve { get; set; }Each particle's angular velocity (rotation speed) will vary along this Curve over its lifetime. Should be a unit Curve.
AngularVelocityMaxProperty
public float AngularVelocityMax { get; set; }Maximum initial angular velocity (rotation speed) applied to each particle in degrees per second.
AngularVelocityMinProperty
public float AngularVelocityMin { get; set; }Minimum initial angular velocity (rotation speed) applied to each particle in degrees per second.
AnimOffsetCurveProperty
public Curve AnimOffsetCurve { get; set; }Each particle's animation offset will vary along this Curve. Should be a unit Curve.
AnimOffsetMaxProperty
public float AnimOffsetMax { get; set; }Maximum animation offset.
AnimOffsetMinProperty
public float AnimOffsetMin { get; set; }Minimum animation offset.
AnimSpeedCurveProperty
public Curve AnimSpeedCurve { get; set; }Each particle's animation speed will vary along this Curve. Should be a unit Curve.
AnimSpeedMaxProperty
public float AnimSpeedMax { get; set; }Maximum particle animation speed.
AnimSpeedMinProperty
public float AnimSpeedMin { get; set; }Minimum particle animation speed.
ColorProperty
public Color Color { get; set; }Each particle's initial color.
Note: CpuParticles3D.Color multiplies the particle mesh's vertex colors. To have a visible effect on a BaseMaterial3D, BaseMaterial3D.VertexColorUseAsAlbedo must be true. For a ShaderMaterial, ALBEDO *= COLOR.rgb; must be inserted in the shader's fragment() function. Otherwise, CpuParticles3D.Color will have no visible effect.
ColorInitialRampProperty
public Gradient ColorInitialRamp { get; set; }Each particle's initial color will vary along this Gradient (multiplied with CpuParticles3D.Color).
Note: CpuParticles3D.ColorInitialRamp multiplies the particle mesh's vertex colors. To have a visible effect on a BaseMaterial3D, BaseMaterial3D.VertexColorUseAsAlbedo must be true. For a ShaderMaterial, ALBEDO *= COLOR.rgb; must be inserted in the shader's fragment() function. Otherwise, CpuParticles3D.ColorInitialRamp will have no visible effect.
ColorRampProperty
public Gradient ColorRamp { get; set; }Each particle's color will vary along this Gradient over its lifetime (multiplied with CpuParticles3D.Color).
Note: CpuParticles3D.ColorRamp multiplies the particle mesh's vertex colors. To have a visible effect on a BaseMaterial3D, BaseMaterial3D.VertexColorUseAsAlbedo must be true. For a ShaderMaterial, ALBEDO *= COLOR.rgb; must be inserted in the shader's fragment() function. Otherwise, CpuParticles3D.ColorRamp will have no visible effect.
DampingCurveProperty
public Curve DampingCurve { get; set; }DampingMaxProperty
public float DampingMax { get; set; }Maximum damping.
DampingMinProperty
public float DampingMin { get; set; }Minimum damping.
DirectionProperty
public Vector3 Direction { get; set; }Unit vector specifying the particles' emission direction.
DrawOrderProperty
public CpuParticles3D.DrawOrderEnum DrawOrder { get; set; }Particle draw order.
EmissionBoxExtentsProperty
public Vector3 EmissionBoxExtents { get; set; }The rectangle's extents if CpuParticles3D.EmissionShape is set to CpuParticles3D.EmissionShapeEnum.Box.
EmissionColorsProperty
public Color[] EmissionColors { get; set; }Sets the Colors to modulate particles by when using CpuParticles3D.EmissionShapeEnum.Points or CpuParticles3D.EmissionShapeEnum.DirectedPoints.
Note: CpuParticles3D.EmissionColors multiplies the particle mesh's vertex colors. To have a visible effect on a BaseMaterial3D, BaseMaterial3D.VertexColorUseAsAlbedo must be true. For a ShaderMaterial, ALBEDO *= COLOR.rgb; must be inserted in the shader's fragment() function. Otherwise, CpuParticles3D.EmissionColors will have no visible effect.
EmissionNormalsProperty
public Vector3[] EmissionNormals { get; set; }Sets the direction the particles will be emitted in when using CpuParticles3D.EmissionShapeEnum.DirectedPoints.
EmissionPointsProperty
public Vector3[] EmissionPoints { get; set; }Sets the initial positions to spawn particles when using CpuParticles3D.EmissionShapeEnum.Points or CpuParticles3D.EmissionShapeEnum.DirectedPoints.
EmissionRingAxisProperty
public Vector3 EmissionRingAxis { get; set; }The axis of the ring when using the emitter CpuParticles3D.EmissionShapeEnum.Ring.
EmissionRingConeAngleProperty
public float EmissionRingConeAngle { get; set; }The angle of the cone when using the emitter CpuParticles3D.EmissionShapeEnum.Ring. The default angle of 90 degrees results in a ring, while an angle of 0 degrees results in a cone. Intermediate values will result in a ring where one end is larger than the other.
Note: Depending on CpuParticles3D.EmissionRingHeight, the angle may be clamped if the ring's end is reached to form a perfect cone.
EmissionRingHeightProperty
public float EmissionRingHeight { get; set; }The height of the ring when using the emitter CpuParticles3D.EmissionShapeEnum.Ring.
EmissionRingInnerRadiusProperty
public float EmissionRingInnerRadius { get; set; }The inner radius of the ring when using the emitter CpuParticles3D.EmissionShapeEnum.Ring.
EmissionRingRadiusProperty
public float EmissionRingRadius { get; set; }The radius of the ring when using the emitter CpuParticles3D.EmissionShapeEnum.Ring.
EmissionShapeProperty
public CpuParticles3D.EmissionShapeEnum EmissionShape { get; set; }Particles will be emitted inside this region.
EmissionSphereRadiusProperty
public float EmissionSphereRadius { get; set; }The sphere's radius if CpuParticles3D.EmissionShapeEnum is set to CpuParticles3D.EmissionShapeEnum.Sphere.
EmittingProperty
public bool Emitting { get; set; }If true, particles are being emitted. CpuParticles3D.Emitting can be used to start and stop particles from emitting. However, if CpuParticles3D.OneShot is true setting CpuParticles3D.Emitting to true will not restart the emission cycle until after all active particles finish processing. You can use the CpuParticles3D.Finished signal to be notified once all active particles finish processing.
ExplosivenessProperty
public float Explosiveness { get; set; }How rapidly particles in an emission cycle are emitted. If greater than 0, there will be a gap in emissions before the next cycle begins.
FixedFpsProperty
public int FixedFps { get; set; }The particle system's frame rate is fixed to a value. For example, changing the value to 2 will make the particles render at 2 frames per second. Note this does not slow down the particle system itself.
FlatnessProperty
public float Flatness { get; set; }Amount of CpuParticles3D.Spread in Y/Z plane. A value of 1 restricts particles to X/Z plane.
FractDeltaProperty
public bool FractDelta { get; set; }If true, results in fractional delta calculation which has a smoother particles display effect.
GravityProperty
public Vector3 Gravity { get; set; }Gravity applied to every particle.
HueVariationCurveProperty
public Curve HueVariationCurve { get; set; }Each particle's hue will vary along this Curve. Should be a unit Curve.
HueVariationMaxProperty
public float HueVariationMax { get; set; }Maximum hue variation.
HueVariationMinProperty
public float HueVariationMin { get; set; }Minimum hue variation.
InitialVelocityMaxProperty
public float InitialVelocityMax { get; set; }Maximum value of the initial velocity.
InitialVelocityMinProperty
public float InitialVelocityMin { get; set; }Minimum value of the initial velocity.
LifetimeProperty
public double Lifetime { get; set; }Amount of time each particle will exist.
LifetimeRandomnessProperty
public double LifetimeRandomness { get; set; }Particle lifetime randomness ratio.
LinearAccelCurveProperty
public Curve LinearAccelCurve { get; set; }Each particle's linear acceleration will vary along this Curve. Should be a unit Curve.
LinearAccelMaxProperty
public float LinearAccelMax { get; set; }Maximum linear acceleration.
LinearAccelMinProperty
public float LinearAccelMin { get; set; }Minimum linear acceleration.
LocalCoordsProperty
public bool LocalCoords { get; set; }If true, particles use the parent node's coordinate space (known as local coordinates). This will cause particles to move and rotate along the CpuParticles3D node (and its parents) when it is moved or rotated. If false, particles use global coordinates; they will not move or rotate along the CpuParticles3D node (and its parents) when it is moved or rotated.
MeshProperty
OneShotProperty
public bool OneShot { get; set; }If true, only one emission cycle occurs. If set true during a cycle, emission will stop at the cycle's end.
OrbitVelocityCurveProperty
public Curve OrbitVelocityCurve { get; set; }Each particle's orbital velocity will vary along this Curve. Should be a unit Curve.
OrbitVelocityMaxProperty
public float OrbitVelocityMax { get; set; }Maximum orbit velocity.
OrbitVelocityMinProperty
public float OrbitVelocityMin { get; set; }Minimum orbit velocity.
ParticleFlagAlignYProperty
public bool ParticleFlagAlignY { get; set; }Align Y axis of particle with the direction of its velocity.
ParticleFlagDisableZProperty
public bool ParticleFlagDisableZ { get; set; }If true, particles will not move on the Z axis.
ParticleFlagRotateYProperty
public bool ParticleFlagRotateY { get; set; }If true, particles rotate around Y axis by CpuParticles3D.AngleMin.
PreprocessProperty
public double Preprocess { get; set; }Particle system starts as if it had already run for this many seconds.
RadialAccelCurveProperty
public Curve RadialAccelCurve { get; set; }Each particle's radial acceleration will vary along this Curve. Should be a unit Curve.
RadialAccelMaxProperty
public float RadialAccelMax { get; set; }Maximum radial acceleration.
RadialAccelMinProperty
public float RadialAccelMin { get; set; }Minimum radial acceleration.
RandomnessProperty
public float Randomness { get; set; }Emission lifetime randomness ratio.
ScaleAmountCurveProperty
public Curve ScaleAmountCurve { get; set; }Each particle's scale will vary along this Curve. Should be a unit Curve.
ScaleAmountMaxProperty
public float ScaleAmountMax { get; set; }Maximum scale.
ScaleAmountMinProperty
public float ScaleAmountMin { get; set; }Minimum scale.
ScaleCurveXProperty
public Curve ScaleCurveX { get; set; }Curve for the scale over life, along the x axis.
ScaleCurveYProperty
public Curve ScaleCurveY { get; set; }Curve for the scale over life, along the y axis.
ScaleCurveZProperty
public Curve ScaleCurveZ { get; set; }Curve for the scale over life, along the z axis.
SeedProperty
public uint Seed { get; set; }Sets the random seed used by the particle system. Only effective if CpuParticles3D.UseFixedSeed is true.
SpeedScaleProperty
public double SpeedScale { get; set; }Particle system's running speed scaling ratio. A value of 0 can be used to pause the particles.
SplitScaleProperty
public bool SplitScale { get; set; }If set to true, three different scale curves can be specified, one per scale axis.
SpreadProperty
public float Spread { get; set; }Each particle's initial direction range from +spread to -spread degrees. Applied to X/Z plane and Y/Z planes.
TangentialAccelCurveProperty
public Curve TangentialAccelCurve { get; set; }Each particle's tangential acceleration will vary along this Curve. Should be a unit Curve.
TangentialAccelMaxProperty
public float TangentialAccelMax { get; set; }Maximum tangent acceleration.
TangentialAccelMinProperty
public float TangentialAccelMin { get; set; }Minimum tangent acceleration.
UseFixedSeedProperty
public bool UseFixedSeed { get; set; }If true, particles will use the same seed for every simulation using the seed defined in CpuParticles3D.Seed. This is useful for situations where the visual outcome should be consistent across replays, for example when using Movie Maker mode.
VisibilityAabbProperty
public Aabb VisibilityAabb { get; set; }The Aabb that determines the node's region which needs to be visible on screen for the particle system to be active.
Grow the box if particles suddenly appear/disappear when the node enters/exits the screen. The Aabb can be grown via code or with the Particles → Generate AABB editor tool.
Methods95
CaptureAabbAabb
public Aabb CaptureAabb();Returns the axis-aligned bounding box that contains all the particles that are active in the current frame.
AabbConvertFromParticlesvoid
public void ConvertFromParticles(Entity particles);Sets this node's properties to match a given GpuParticles3D node with an assigned ParticleProcessMaterial.
| Name | Type | Default |
|---|---|---|
particles | Entity | — |
GetAmountint
public int GetAmount();intGetColorColor
public Color GetColor();ColorGetColorInitialRampGradient
public Gradient GetColorInitialRamp();GradientGetColorRampGradient
public Gradient GetColorRamp();GradientGetDirectionVector3
public Vector3 GetDirection();Vector3GetDrawOrderCpuParticles3D.DrawOrderEnum
public CpuParticles3D.DrawOrderEnum GetDrawOrder();CpuParticles3D.DrawOrderEnumGetEmissionBoxExtentsVector3
public Vector3 GetEmissionBoxExtents();Vector3GetEmissionColorsColor[]
public Color[] GetEmissionColors();Color[]GetEmissionNormalsVector3[]
public Vector3[] GetEmissionNormals();Vector3[]GetEmissionPointsVector3[]
public Vector3[] GetEmissionPoints();Vector3[]GetEmissionRingAxisVector3
public Vector3 GetEmissionRingAxis();Vector3GetEmissionRingConeAnglefloat
public float GetEmissionRingConeAngle();floatGetEmissionRingHeightfloat
public float GetEmissionRingHeight();floatGetEmissionRingInnerRadiusfloat
public float GetEmissionRingInnerRadius();floatGetEmissionRingRadiusfloat
public float GetEmissionRingRadius();floatGetEmissionShapeCpuParticles3D.EmissionShapeEnum
public CpuParticles3D.EmissionShapeEnum GetEmissionShape();CpuParticles3D.EmissionShapeEnumGetEmissionSphereRadiusfloat
public float GetEmissionSphereRadius();floatGetExplosivenessRatiofloat
public float GetExplosivenessRatio();floatGetFixedFpsint
public int GetFixedFps();intGetFlatnessfloat
public float GetFlatness();floatGetFractionalDeltabool
public bool GetFractionalDelta();boolGetGravityVector3
public Vector3 GetGravity();Vector3GetLifetimedouble
public double GetLifetime();doubleGetLifetimeRandomnessdouble
public double GetLifetimeRandomness();doubleGetMeshMesh
public Mesh GetMesh();MeshGetOneShotbool
public bool GetOneShot();boolGetParamCurveCurve
public Curve GetParamCurve(CpuParticles3D.Parameter param);Returns the Curve of the parameter specified by CpuParticles3D.Parameter.
| Name | Type | Default |
|---|---|---|
param | CpuParticles3D.Parameter | — |
CurveGetParamMaxfloat
public float GetParamMax(CpuParticles3D.Parameter param);Returns the maximum value range for the given parameter.
| Name | Type | Default |
|---|---|---|
param | CpuParticles3D.Parameter | — |
floatGetParamMinfloat
public float GetParamMin(CpuParticles3D.Parameter param);Returns the minimum value range for the given parameter.
| Name | Type | Default |
|---|---|---|
param | CpuParticles3D.Parameter | — |
floatGetParticleFlagbool
public bool GetParticleFlag(CpuParticles3D.ParticleFlags particleFlag);Returns the enabled state of the given particle flag.
| Name | Type | Default |
|---|---|---|
particleFlag | CpuParticles3D.ParticleFlags | — |
boolGetPreProcessTimedouble
public double GetPreProcessTime();doubleGetRandomnessRatiofloat
public float GetRandomnessRatio();floatGetScaleCurveXCurve
public Curve GetScaleCurveX();CurveGetScaleCurveYCurve
public Curve GetScaleCurveY();CurveGetScaleCurveZCurve
public Curve GetScaleCurveZ();CurveGetSeeduint
public uint GetSeed();uintGetSpeedScaledouble
public double GetSpeedScale();doubleGetSplitScalebool
public bool GetSplitScale();boolGetSpreadfloat
public float GetSpread();floatGetUseFixedSeedbool
public bool GetUseFixedSeed();boolGetUseLocalCoordinatesbool
public bool GetUseLocalCoordinates();boolGetVisibilityAabbAabb
public Aabb GetVisibilityAabb();AabbIsEmittingbool
public bool IsEmitting();boolRequestParticlesProcess2 overloads
public void RequestParticlesProcess(float processTime);Requests the particles to process for extra process time during a single frame.
process_time defines the time that the particles will process while emitting is on. process_time_residual defines the time that particles will process with emitting turned off for the simulation. When combined with CpuParticles3D.SpeedScale set to 0.0, this is useful to be able to seek a particle system timeline.
| Name | Type | Default |
|---|---|---|
processTime | float | — |
public void RequestParticlesProcess(float processTime, float processTimeResidual = 0f);Requests the particles to process for extra process time during a single frame.
process_time defines the time that the particles will process while emitting is on. process_time_residual defines the time that particles will process with emitting turned off for the simulation. When combined with CpuParticles3D.SpeedScale set to 0.0, this is useful to be able to seek a particle system timeline.
| Name | Type | Default |
|---|---|---|
processTime | float | — |
processTimeResidual | float | 0f |
Restart2 overloads
public void Restart();Restarts the particle emitter.
If keep_seed is true, the current random seed will be preserved. Useful for seeking and playback.
public void Restart(bool keepSeed = false);Restarts the particle emitter.
If keep_seed is true, the current random seed will be preserved. Useful for seeking and playback.
| Name | Type | Default |
|---|---|---|
keepSeed | bool | false |
SetAmountvoid
public void SetAmount(int amount);| Name | Type | Default |
|---|---|---|
amount | int | — |
SetColorvoid
public void SetColor(Color color);| Name | Type | Default |
|---|---|---|
color | Color | — |
SetColorInitialRampvoid
public void SetColorInitialRamp(Gradient ramp);| Name | Type | Default |
|---|---|---|
ramp | Gradient | — |
SetColorRampvoid
public void SetColorRamp(Gradient ramp);| Name | Type | Default |
|---|---|---|
ramp | Gradient | — |
SetDirectionvoid
public void SetDirection(Vector3 direction);| Name | Type | Default |
|---|---|---|
direction | Vector3 | — |
SetDrawOrdervoid
public void SetDrawOrder(CpuParticles3D.DrawOrderEnum order);| Name | Type | Default |
|---|---|---|
order | CpuParticles3D.DrawOrderEnum | — |
SetEmissionBoxExtentsvoid
public void SetEmissionBoxExtents(Vector3 extents);| Name | Type | Default |
|---|---|---|
extents | Vector3 | — |
SetEmissionColors2 overloads
public void SetEmissionColors(Color[] array);| Name | Type | Default |
|---|---|---|
array | Color[] | — |
public void SetEmissionColors(ReadOnlySpan<Color> array);| Name | Type | Default |
|---|---|---|
array | ReadOnlySpan<Color> | — |
SetEmissionNormals2 overloads
public void SetEmissionNormals(Vector3[] array);| Name | Type | Default |
|---|---|---|
array | Vector3[] | — |
public void SetEmissionNormals(ReadOnlySpan<Vector3> array);| Name | Type | Default |
|---|---|---|
array | ReadOnlySpan<Vector3> | — |
SetEmissionPoints2 overloads
public void SetEmissionPoints(Vector3[] array);| Name | Type | Default |
|---|---|---|
array | Vector3[] | — |
public void SetEmissionPoints(ReadOnlySpan<Vector3> array);| Name | Type | Default |
|---|---|---|
array | ReadOnlySpan<Vector3> | — |
SetEmissionRingAxisvoid
public void SetEmissionRingAxis(Vector3 axis);| Name | Type | Default |
|---|---|---|
axis | Vector3 | — |
SetEmissionRingConeAnglevoid
public void SetEmissionRingConeAngle(float coneAngle);| Name | Type | Default |
|---|---|---|
coneAngle | float | — |
SetEmissionRingHeightvoid
public void SetEmissionRingHeight(float height);| Name | Type | Default |
|---|---|---|
height | float | — |
SetEmissionRingInnerRadiusvoid
public void SetEmissionRingInnerRadius(float innerRadius);| Name | Type | Default |
|---|---|---|
innerRadius | float | — |
SetEmissionRingRadiusvoid
public void SetEmissionRingRadius(float radius);| Name | Type | Default |
|---|---|---|
radius | float | — |
SetEmissionShapevoid
public void SetEmissionShape(CpuParticles3D.EmissionShapeEnum shape);| Name | Type | Default |
|---|---|---|
shape | CpuParticles3D.EmissionShapeEnum | — |
SetEmissionSphereRadiusvoid
public void SetEmissionSphereRadius(float radius);| Name | Type | Default |
|---|---|---|
radius | float | — |
SetEmittingvoid
public void SetEmitting(bool emitting);| Name | Type | Default |
|---|---|---|
emitting | bool | — |
SetExplosivenessRatiovoid
public void SetExplosivenessRatio(float ratio);| Name | Type | Default |
|---|---|---|
ratio | float | — |
SetFixedFpsvoid
public void SetFixedFps(int fps);| Name | Type | Default |
|---|---|---|
fps | int | — |
SetFlatnessvoid
public void SetFlatness(float amount);| Name | Type | Default |
|---|---|---|
amount | float | — |
SetFractionalDeltavoid
public void SetFractionalDelta(bool enable);| Name | Type | Default |
|---|---|---|
enable | bool | — |
SetGravityvoid
public void SetGravity(Vector3 accelVec);| Name | Type | Default |
|---|---|---|
accelVec | Vector3 | — |
SetLifetimevoid
public void SetLifetime(double secs);| Name | Type | Default |
|---|---|---|
secs | double | — |
SetLifetimeRandomnessvoid
public void SetLifetimeRandomness(double random);| Name | Type | Default |
|---|---|---|
random | double | — |
SetMeshvoid
public void SetMesh(Mesh mesh);| Name | Type | Default |
|---|---|---|
mesh | Mesh | — |
SetOneShotvoid
public void SetOneShot(bool enable);| Name | Type | Default |
|---|---|---|
enable | bool | — |
SetParamCurvevoid
public void SetParamCurve(CpuParticles3D.Parameter param, Curve curve);Sets the Curve of the parameter specified by CpuParticles3D.Parameter. Should be a unit Curve.
| Name | Type | Default |
|---|---|---|
param | CpuParticles3D.Parameter | — |
curve | Curve | — |
SetParamMaxvoid
public void SetParamMax(CpuParticles3D.Parameter param, float value);Sets the maximum value for the given parameter.
| Name | Type | Default |
|---|---|---|
param | CpuParticles3D.Parameter | — |
value | float | — |
SetParamMinvoid
public void SetParamMin(CpuParticles3D.Parameter param, float value);Sets the minimum value for the given parameter.
| Name | Type | Default |
|---|---|---|
param | CpuParticles3D.Parameter | — |
value | float | — |
SetParticleFlagvoid
public void SetParticleFlag(CpuParticles3D.ParticleFlags particleFlag, bool enable);Enables or disables the given particle flag.
| Name | Type | Default |
|---|---|---|
particleFlag | CpuParticles3D.ParticleFlags | — |
enable | bool | — |
SetPreProcessTimevoid
public void SetPreProcessTime(double secs);| Name | Type | Default |
|---|---|---|
secs | double | — |
SetRandomnessRatiovoid
public void SetRandomnessRatio(float ratio);| Name | Type | Default |
|---|---|---|
ratio | float | — |
SetScaleCurveXvoid
public void SetScaleCurveX(Curve scaleCurve);| Name | Type | Default |
|---|---|---|
scaleCurve | Curve | — |
SetScaleCurveYvoid
public void SetScaleCurveY(Curve scaleCurve);| Name | Type | Default |
|---|---|---|
scaleCurve | Curve | — |
SetScaleCurveZvoid
public void SetScaleCurveZ(Curve scaleCurve);| Name | Type | Default |
|---|---|---|
scaleCurve | Curve | — |
SetSeedvoid
public void SetSeed(uint seed);| Name | Type | Default |
|---|---|---|
seed | uint | — |
SetSpeedScalevoid
public void SetSpeedScale(double scale);| Name | Type | Default |
|---|---|---|
scale | double | — |
SetSplitScalevoid
public void SetSplitScale(bool splitScale);| Name | Type | Default |
|---|---|---|
splitScale | bool | — |
SetSpreadvoid
public void SetSpread(float degrees);| Name | Type | Default |
|---|---|---|
degrees | float | — |
SetUseFixedSeedvoid
public void SetUseFixedSeed(bool useFixedSeed);| Name | Type | Default |
|---|---|---|
useFixedSeed | bool | — |
SetUseLocalCoordinatesvoid
public void SetUseLocalCoordinates(bool enable);| Name | Type | Default |
|---|---|---|
enable | bool | — |
SetVisibilityAabbvoid
public void SetVisibilityAabb(Aabb aabb);| Name | Type | Default |
|---|---|---|
aabb | Aabb | — |
Signals and events1
FinishedEvent
public event Action Finished;Emitted when all active particles have finished processing. When CpuParticles3D.OneShot is disabled, particles will process continuously, so this is never emitted.
CpuParticles3D.DrawOrderEnum
| Value | Description |
|---|---|
Index = 0 | Particles are drawn in the order emitted. |
Lifetime = 1 | Particles are drawn in order of remaining lifetime. In other words, the particle with the highest lifetime is drawn at the front. |
ViewDepth = 2 | Particles are drawn in order of depth. |
CpuParticles3D.EmissionShapeEnum
| Value | Description |
|---|---|
Box = 3 | Particles will be emitted in the volume of a box. |
DirectedPoints = 5 | Particles will be emitted at a position chosen randomly among |
Max = 7 | Represents the size of the |
Point = 0 | All particles will be emitted from a single point. |
Points = 4 | Particles will be emitted at a position chosen randomly among |
Ring = 6 | Particles will be emitted in a ring or cylinder. |
Sphere = 1 | Particles will be emitted in the volume of a sphere. |
SphereSurface = 2 | Particles will be emitted on the surface of a sphere. |
CpuParticles3D.Parameter
CpuParticles3D.ParticleFlags
| Value | Description |
|---|---|
AlignYToVelocity = 0 | Use with |
DisableZ = 2 | Use with |
Max = 3 | Represents the size of the |
RotateY = 1 | Use with |