How to set niagara float parameter decrease trigger by blueprint?

Hello everyone,

I am learning UE5 niagara controll by blueprint now,

and I want to control a float parameter in niagara system,

set a trigger pressed to make it decreasing in blueprint. What is a good way to do it?

Any answer will be appriciated.

Thank you

Hey there @543764! Welcome to the community! So basically you need a couple of things. A blueprint with a reference to the Niagara system you’re adjusting. In my case I just have it as a child of the character, but you could instead instantiate it if you’d prefer and get that ref.

Then you’re going to need to make a new user parameter in the Niagara system itself.

Hitting either of those will spawn a sub menu

image

The from there, you’ll click float, name it something memorable. I named mine NewVal in this example.

image

So now let’s tie the parameter to one of the Niagara variables shall we? Click the spawn rate of your system (if that’s the float you wanna change) Then click drag the NewVal over to it like this gif. This binds the variable.

UnrealEditor_2022-08-16_22-59-59

Now you’re gonna need an event, the reference to your Niagara instance, and this node.

image

And Voila, you have a button that can change the spawn rate of this Niagara system!

2022-08-16_23-02-23

I hope this was in depth enough to explain it!

4 Likes