UNiagaraFunctionLibrary::SpawnSystemAtLocation

Spawns a Niagara System at the specified world location/rotation

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", WorldContext="WorldContextObject", UnsafeDuringActorConstruction="true"))
static UNiagaraComponent * SpawnSystemAtLocation
(
    const UObject * WorldContextObject,
    class UNiagaraSystem * SystemTemplate,
    FVector Location,
    FRotator Rotation,
    FVector Scale,
    bool bAutoDestroy,
    bool bAutoActivate,
    ENCPoolMethod PoolingMethod,
    bool bPreCullCheck
)

Remarks

Spawns a Niagara System at the specified world location/rotation

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