Niagara: Don't use emitter based on condition

Does anyone know how to make it so an emitter won’t be used if a condition (something like a bool) is set to true.

tha-that’s really all the questions is

Solved in engine version 5.74


I have figured this out for those that need to know. In my case I did this using a NDC (Niagara data channel) to send this information. It’s very simple in actual practice.

1st, we need a scratch pad. Inside the System spawn (the sooner the better) It should be set up something like this

What’s going on here Is I’m reading the NDC to get the booleans of what emitters I do and do not want to be calculated at all in the effect. the most important part is that “System” namespace at the map set node. The outputs are ENiagara Execution states. Inactive clear means nuclear it if it set to that, completely destroying it.

For this next step there is a two staged process to get this work. You need one to be able to do the other. First in any effect you wish to call this, you need to add an “Emitter State” in the Emitter Update node. Without this you can’t have access to the emitter Execution state. Parameter

image

From there while the Emitter system is selected, go over to your parameters and look under "emitter Parameters. You should see Emitter Execution State.

Click and drag that into the “Emitter Spawn” area of the emitter

It should give you this module.

With it selected, you should see in the detials parameter the enum and a drop down menu. You don’t care about that, there is a little drop arrow on the far right. This is Used to “Bind” it to a variable.

image

Guess what you put there? Your system output from the scratchpad before.

at the end it should look something like this

image

This will right at beginning before any math is done. destroy this emitter so it doesn’t waste cost anything but still allows you to centralize the Niagara System. Very important for NDCs