![]() |
Pixelpart 1.8.2
Unity Plugin
|
Node that emits particles. More...
Public Types | |
enum | ShapeType : int { Point = 0 , Line = 1 , Ellipse = 2 , Rectangle = 3 , Path = 4 , Ellipsoid = 5 , Cuboid = 6 , Cylinder = 7 } |
Types of emitter shapes. More... | |
enum | DistributionType : int { Uniform = 0 , Center = 1 , Hole = 2 , Boundary = 3 , GridRandom = 4 , GridOrdered = 5 } |
Particle distribution modes. More... | |
enum | GridOrderType : int |
Order of points for grid distribution mode. | |
enum | EmissionModeType : int { Continuous = 0 , BurstStart = 1 , BurstEnd = 2 } |
Modes for particle emission. More... | |
enum | DirectionModeType : int { Fixed = 0 , Outwards = 1 , Inwards = 2 , Inherit = 3 , InheritInverse = 4 } |
Modes to determine the initial direction of particles. More... | |
Public Member Functions | |
PixelpartParticleEmitter (IntPtr effectRuntimePtr, uint id) | |
Construct PixelpartParticleEmitter. | |
void | AddShapePoint (Vector3 point) |
Add a new point to the emitter shape. | |
void | RemoveShapePoint (int index) |
Remove the point at the given index from the emitter shape. | |
void | SetShapePoint (int index, Vector3 point) |
Change the location of the point at the given index in the emitter shape. | |
Vector3 | GetShapePoint (int index) |
Return the location of the point at the given index in the emitter shape. | |
![]() | |
PixelpartNode (IntPtr effectRuntimePtr, uint id) | |
Construct PixelpartNode. | |
Properties | |
ShapeType | Shape [get, set] |
Shape of the emitter area. | |
int | ShapePointCount [get] |
Number of points in the emitter shape. | |
DistributionType | Distribution [get, set] |
Where particles are spawned inside the emitter area. | |
GridOrderType | GridOrder [get, set] |
Grid order of grid distribution modes. | |
Vector3Int | GridSize [get, set] |
Number of grid cells. | |
EmissionModeType | EmissionMode [get, set] |
Emission mode to control when particles are created during the lifetime of the emitter. | |
DirectionModeType | DirectionMode [get, set] |
Mode to control initial particle direction. | |
PixelpartAnimatedPropertyFloat3 | Direction [get] |
Direction in which particles move when spawned, in degrees. | |
PixelpartAnimatedPropertyFloat | Spread [get] |
How much the direction varies. | |
int | NumShapePoints [get] |
Number of points in the emitter shape. Deprecated, use ShapePointCount. | |
![]() | |
uint | Id [get] |
ID of the node. | |
uint | ParentId [get] |
ID of the node's parent. | |
string | Name [get] |
Name of the node. | |
float | LifetimeStart [get, set] |
Time in seconds until the node becomes active. | |
float | LifetimeDuration [get, set] |
How long the node stays active in seconds. | |
bool | Repeat [get, set] |
Wether the node repeats its behavior after its lifetime is over. | |
bool | Active [get] |
Whether the node is active at the current point in time. | |
float | LocalTime [get] |
Time fraction the node has been active for, in range 0.0 (0%) to 1.0 (100%). | |
PixelpartAnimatedPropertyFloat3 | Position [get] |
Position of the node. | |
PixelpartAnimatedPropertyFloat3 | Rotation [get] |
Rotation of the node in degrees. | |
PixelpartAnimatedPropertyFloat3 | Scale [get] |
Size of the node. | |
Node that emits particles.
Particle emitters continuously spawn new particles of assigned particle types in a defined area. They also define in which direction particles move initially.
enum DirectionModeType : int |
Modes to determine the initial direction of particles.
When a particle is created by the particle emitter, it decides in which direction to emit the particle based on the specified direction and the given direction mode.
enum DistributionType : int |
Particle distribution modes.
When spawning particles inside the emitter shape, particle emitters can use different techniques to determine the exact points where particles are spawned. For example, you may want to spawn particles near the edge of the shape or on in a grid-like pattern.
enum EmissionModeType : int |
Modes for particle emission.
The emission mode of particle emitters controls when particles are created during the lifetime of the emitter.
enum ShapeType : int |
Types of emitter shapes.
PixelpartParticleEmitter | ( | IntPtr | effectRuntimePtr, |
uint | id ) |
Construct PixelpartParticleEmitter.
effectRuntimePtr | Effect runtime |
id | Node ID |
void AddShapePoint | ( | Vector3 | point | ) |
Add a new point to the emitter shape.
Only applicable for emitter shape Path
.
point | Point to add |
Vector3 GetShapePoint | ( | int | index | ) |
Return the location of the point at the given index in the emitter shape.
Only applicable for emitter shape Path
.
index | Index of point |
void RemoveShapePoint | ( | int | index | ) |
Remove the point at the given index from the emitter shape.
Only applicable for emitter shape Path
.
index | Index of point to remove |
void SetShapePoint | ( | int | index, |
Vector3 | point ) |
Change the location of the point at the given index in the emitter shape.
Only applicable for emitter shape Path
.
index | Index of point to change |
point | New location |
|
get |
Direction in which particles move when spawned, in degrees.
For 3D effects, the direction is composed of roll, yaw and pitch.
|
getset |
Mode to control initial particle direction.
When a particle is created by the particle emitter, it decides in which direction to emit the particle based on the specified direction and the given direction mode.
|
getset |
Number of grid cells.
Only applicable for grid distribution modes.
|
get |
Number of points in the emitter shape. Deprecated, use ShapePointCount.
Only applicable for emitter shape Path
.
|
get |
Number of points in the emitter shape.
Only applicable for emitter shape Path
.
|
get |
How much the direction varies.
A spread of 0° means that particles only move in the specified direction, while 360° leads to particles shooting off in all directions.