Download

Exposing settings

I know this is possible I just dont know how to do this. I have a NS that I created and I have placed in my Sequencer. I have animated some transforms and the visibility of the NS. What I want to do is have the ability to animate the spawn rate, sprite size and drag and maybe a few other things.

Problem is I dont know how to expose those settings so I can add the track to my sequencer.

Anyone know where I can get some info on how to do that?

Hey,
yes it’s possible by a little workaround,… I’m kinda doing the same thing,…
So, first, you can’t directly expose Niagara parameters into the sequencer directly… there is actually a Niagara Parameter collection (kinda same thing like a MPC but for Niagara, and so far, at least on my side, I can’t link it into the sequencer… guess it’s WIP or “so”)
… But enough talking, I show you how i solve this (pretty shure there are some other ways too):

  1. Create a user exposed parameter:


    Click on the “Link” Symbol, go to “Make” and hit “Read from new User parameter”

Now you get this “exposed Parameter” here:
step2
It will be named after the Parameter you want to expose… but you can rename it to your needs
(Pro tip :smiley: after renaming the Exposed parameter,… relink it (maybe this is just a UE5EA bug for now,… but after renaming, the link gets broken, even when everything’s looking fine…)

To link User Parameters, simply Klick on the Link again and, find your way…
linkStuff
With this you’re able to link other Parameters with one Exposed Parameter and more…

  1. Okay so now you’ve got ur User Parameters that u need exposed and niiicely named…
    Time to do some little wrapping… and creating a Material Parameter Collection…
    Create your Scalars (or vectors, whatever you need)…
    This is what is then animated (the MPC) in the sequencer, that will drive the User exposed parameters of your niagara sys.
    step3
    In my case,… just some Logic names,… for that stuff I want to animate

  2. now we need to link the MPC somehow with the Niagara System, this is easily achieved via Blueprint…
    So instead of dropping the System into your scene directly, we’ll create a Actor Blueprint and throw the Niagara System in… (just drag the System into your components list of your BP,… see Screenshot)

Now create a “get scalar Parameter value” node,… in it’s dropdown, select your MPC and the Parameter from which you want to read the values from…
Next… Create a “Set niagara variable” node (float or vector,… whatever you need in your case)
Connect your “Niagara sys” as the target (drag it from the list into the graph to get it)
And type in the name of the “user exposed” parameter of your niagara system which you want to feed the values into…
Connect the execution “lines” (the white ones, sry don’t know how well u know blueprints, …anyways :smiley: )
Connect the return value from the Get scalar Param node to the set niagara node (do some crazy math or other stuff in between :wink: )
And that’s basically it…

What you need to do now is,… instead of draging the niagara system into your scene, you do it with this blueprint,…
Go into your Sequencer, link your MPC,… choose the param that you want to animate, and, jeah, simply animate it…
To test all of this,… the easiest is to set your engine to “simulate”
sim

So to recap, in my case, I controll several params in the Niagara system with only one parameter of the MPC… using the blueprint actors as, jeah, the “wrapper”…

Hope this helps a little
Cheers P.

Thanks for your response! I appreciate the help. I followed most of what you were saying but I am still missing something. I enclosed some screen grabs showing you. I dont have my exposed value ( spawnRate) in the dropdown in the scalar parameter value in the bp.

I could not find step #3 that you did. I dont know where that is?


Hey yes, you still need your “ParameterCollection” → just follow this little guide here (points 1 and 2 basically)

Thats where you create a new entry, and this parameter collection is what is then linked in your sequencer…

After you have your parameter collection setup… thats when you select it in the blueprint… see screenshot

So the “setNiagaraVariable(Float)” node is where you type in the name of your “user” parameter inside the Niagara system…

In the “getScalarParameterValue” node you’ll have your collection available to choose… after selecting your collection, you’ll be able to select the “parameter” from your collection…

1 Like

Thanks again! I think I got it now.
I successfully added the drag and SpawnRate into my sequence and both are able to animate now.

Thanks for your help



1 Like

cool awesome, no problemo!

Right now, only the “drag” would apply but not the other nodes,…
So,… just another tip, you can actually connect your nodes in a chain, so every node “fires”/executes,… like on the screenshot here…

But jeah, basically that’s it!

Great! I was wondering how to do that.

much appreciated.

1 Like