UNiagaraComponent::SetAsset

Switch which asset the component is using.

Windows
MacOS
Linux

References

Module

Niagara

Header

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

Include

#include "NiagaraComponent.h"

Source

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

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category=Niagara, Meta=(DisplayName="Set Niagara System Asset"))
void SetAsset
(
    UNiagaraSystem * InAsset,
    bool bResetExistingOverrideParameters
)

Remarks

Switch which asset the component is using. This requires Niagara to wait for concurrent execution and the override parameter store to be synchronized with the new asset. By default existing parameters are reset when we call SetAsset, modify bResetExistingOverrideParameters to leave existing parameter data as is.

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