Setting Niagara Variables in Blueprint

Quite new at using Blueprints, I’m spawning the Niagara System without a problem. But i can’t find information on how to set user variables properly. I was able to do it by connecting nodes with the Event Tick, it works fine but I get errors for each tick that it tries to call the variables. I’m doing it in the Level Blueprint but the way.

I tried also to replicate setup from the tutorial I studied, but I had to put the name of Niagara System manually into variable name and it doesn’t work. System is still spawning, but without parameters and there are error for one time variables are called.

It seems like you are trying to set variables in something that doesn’t exist yet (that’s why it is “accessing none”).

Try spawning the actual particle first before editing its variables.

In the case of your event tick, that can be done by promoting the output of the spawn system node into a variable and plugging a get of that same variable into an Is Valid node (the one with the question mark), then you can control that your tick node only tries to change the variables in the particle if it is valid (exists).

In the case of the second example, try putting the variable settings behind the node creating the particle (this might require a very short .01 delay node after the spawn node).

1 Like

Thanks a lot, both solutions work. I prefer the second one of course without using the event tick. I can’t remember now what was different before, why I couldn’t do it without the tick .

Here are the screenshots for history:

1 Like

I was having the same problem and this worked for me! Thanks