unreal.NiagaraSpriteAlignment

class unreal.NiagaraSpriteAlignment

Bases: unreal.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

CUSTOM_ALIGNMENT

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

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

Type

0

VELOCITY_ALIGNED

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