Navigation
API > API/Plugins > API/Plugins/Niagara
This enum decides how a sprite particle will orient its "up" axis. Must keep these in sync with NiagaraSpriteVertexFactory.ush
| Name | ENiagaraSpriteAlignment |
| Type | enum |
| Header File | /Engine/Plugins/FX/Niagara/Source/Niagara/Public/NiagaraSpriteRendererProperties.h |
| Include Path | #include "NiagaraSpriteRendererProperties.h" |
Syntax
enum ENiagaraSpriteAlignment
{
Unaligned,
VelocityAligned,
CustomAlignment,
Automatic,
}
Values
| Name | Remarks |
|---|---|
| Unaligned | Only Particles.SpriteRotation and FacingMode impact the alignment of the particle. |
| VelocityAligned | Imagine the particle texture having an arrow pointing up, this mode makes the arrow point in the direction of the Particles.Velocity attribute. |
| CustomAlignment | Imagine the particle texture having an arrow pointing up, this mode makes the arrow point towards the axis defined by the "Particles.SpriteAlignment" attribute. |
| Automatic | Automatically select between Unaligned & CustomAlignment depending on if SpriteAlignment Binding is valid. |