Navigation
API > API/Plugins > API/Plugins/Niagara > API/Plugins/Niagara/UNiagaraComponent
Description
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.
| Name | SetAsset |
| Type | function |
| Header File | /Engine/Plugins/FX/Niagara/Source/Niagara/Public/NiagaraComponent.h |
| Include Path | #include "NiagaraComponent.h" |
| Source | /Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraComponent.cpp |
UFUNCTION (BlueprintCallable, Category=Niagara, Meta=(DisplayName="Set Niagara System Asset"))
void SetAsset
(
UNiagaraSystem * InAsset,
bool bResetExistingOverrideParameters
)