I’m trying to set the “Lifetime” of a Niagara system via variable, which I’ve set up by creating a User Exposed Parameter in the Niagara system and assigned it accordingly. But in order to dynamically set that parameter in the blueprint’s event graph, I need to get a reference to the Niagara Particle System Component Object. I must get that reference and then use a “Set Float Parameter” node to set the lifetime duration parameter before actually spawning the system. If I spawn the system before setting the lifetime parameter, the system defaults to a lifetime parameter of zero since the parameter isn’t being changed until after the system spawns. I can’t seem to get that reference to the Niagara Particle System Component Object until after the system is spawned. Any idea how to get that refence before the system is spawned? Below is what I’ve tried.
Setting up the user parameter.
Spawning the Niagara system.
Either using my Niagara system reference variable doesn’t work, or I’m doing it wrong.
Trying other nodes.
The target of the Set Float Parameter node is a FXSystem Component Object Reference.
But these are my only options for FXSystem.
The output from the “Spawn System at Location” node works with the “Set Float Parameter”, but the issue again is that if I do this, I can’t get the reference I need until after the Niagara system is spawned, and once the system is spawn, it’s too late to change it’s lifetime parameter.