Hi.
I have an Niagara effect ( it is a looping effect ).
The variable is UNiagaraComponent* _current_appear_effects;
I may to activate it _current_appear_effect->SetHiddenInGame(false); _current_appear_effect->Activate(true);
or to hide it _current_appear_effect->SetHiddenInGame(true);
I want to hide it smoothly. Smoothly change an opacity of effect from 1 to 0 ( it must hiding smoothly )
how to change the opacity of the effect ?
You have to go the other way around.
Create a float parameter in the Niagara system and use it as the alpha in the particle color. Control the float parameter from the code, don’t try to get the material from the Niagara system.
Update: rather use the float parameter as a multiplier for the alpha that’s already used in the system.