UNiagaraFunctionLibrary::SpawnSystemAttached

Spawns a Niagara System attached to a component

Windows
MacOS
Linux

References

Module

Niagara

Header

/Engine/Plugins/FX/Niagara/Source/Niagara/Public/NiagaraFunctionLibrary.h

Include

#include "NiagaraFunctionLibrary.h"

Source

/Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraFunctionLibrary.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category=Niagara,
          Meta=(Keywords="niagara System", UnsafeDuringActorConstruction="true"))
static UNiagaraComponent * SpawnSystemAttached
(
    UNiagaraSystem * SystemTemplate,
    USceneComponent * AttachToComponent,
    FName AttachPointName,
    FVector Location,
    FRotator Rotation,
    EAttachLocation::Type LocationType,
    bool bAutoDestroy,
    bool bAutoActivate,
    ENCPoolMethod PoolingMethod,
    bool bPreCullCheck
)

Remarks

Spawns a Niagara System attached to a component

Returns

The spawned UNiagaraComponent

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss