unreal.NiagaraSpriteAlignment

class unreal.NiagaraSpriteAlignment

Bases: EnumBase

This enum decides how a sprite particle will orient its “up” axis. Must keep these in sync with NiagaraSpriteVertexFactory.ush

C++ Source:

  • Plugin: Niagara

  • Module: Niagara

  • File: NiagaraSpriteRendererProperties.h

AUTOMATIC: NiagaraSpriteAlignment

Automatically select between Unaligned & CustomAlignment depending on if SpriteAlignment Binding is valid.

Type:

3

CUSTOM_ALIGNMENT: NiagaraSpriteAlignment

Imagine the particle texture having an arrow pointing up, this mode makes the arrow point towards the axis defined by the “Particles.SpriteAlignment” attribute. FacingMode is ignored unless CustomFacingVector is set. If the “Particles.SpriteAlignment” attribute is missing, this falls back to Unaligned mode.

Type:

2

UNALIGNED: NiagaraSpriteAlignment

Only Particles.SpriteRotation and FacingMode impact the alignment of the particle.

Type:

0

VELOCITY_ALIGNED: NiagaraSpriteAlignment

Imagine the particle texture having an arrow pointing up, this mode makes the arrow point in the direction of the Particles.Velocity attribute. FacingMode is ignored unless CustomFacingVector is set.

Type:

1