Niagara System - nkdtr/A2SSupport GitHub Wiki

Anim To Sprite supports capturing NiagaraSystems partially.
20231018114251

Limitations

Input

NiagaraSystems for ATS need these conditions:

  • Emitters need to be deterministic (fixed random seed)
  • Emitters need to be CPU sim
  • Materials should be opaque or masked, and its color is output to BaseColor
  • NiagaraComponent needs to be attached to an Actor
    • Engine-provided Notifies in AnimComposite does not work for this.
    • ATS provides an alternative for this

Output

The same spec as those without NiagaraSystems. It means:

  • Sprites have Colors/Masks and Normals (no alpha/add blend)
  • Lit

How to setup

NiagaraSystem and material

NiagaraSystem needs to be deterministic.
Check "Determinism" in emitter properties.
image
Blendmode of materials for renderer needs to be Opaque or Masked.
BaseColor needs to be connected.

ActorBP and Capture

NiagaraOnly Actor

Attach NiagaraComponent to plain ActorBP.
image
Since it doesn't have Skeletal animation, the length of animation needs to be set explicitly.
image

Character-Attached

Attach NiagaraComponent to SkeletalMeshComponent then it will follow skeletal mesh animations. image

If you don't want Niagara effect to be always shown, uncheck "Auto Activate" and set some ComponentTag.

Then use AnimNotify_ActivateNS to turn on and off it (in AnimComposite or AnimSequence).
image