x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How can I change Niagara variables via blueprint?

Hi, i've been trying to access my Niagara system/emitter variables through blueprint to have some dynamic values, but I can't seem to find a way to do that in the editor or online.

Product Version: UE 4.21
Tags:
more ▼

asked Nov 14 '18 at 08:58 PM in Using UE4

avatar image

shaipo
96 6 12 14

avatar image shaipo Nov 15 '18 at 03:48 PM

Anyone? I was able to expose some parameters in the Niagara System and see them in the blueprint editor via a Niagara component, but I can't seem to get or set them via blueprint.

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

With this setup:

alt text

alt text

I was able to change the color at runtime, but let it be known that with this method only the following type of variables can be modified via blueprint; (Actor, Bool, Float, Int32, Linear Color, Quaternion, Vector 2, Vector 3 and Vector 4).

Here's hoping a future update will include more variable types.

parameter.png (8.4 kB)
blueprint.png (108.2 kB)
more ▼

answered Nov 15 '18 at 04:13 PM

avatar image

shaipo
96 6 12 14

avatar image S9G Nov 30 '18 at 03:42 AM

Thanks for posting the answer. Just one note for the newbies out there: "System Exposed Parameters" appear in Niagara System. You can create "User.OwnerColor" as an User variable in the Niagara Emitter, and drag it to the actual Color values (so it uses your value instead of hardcoding RGB color in the emitter). Also, "Current Color" in this example is a LinearColor variable, you can use just MakeColor or MakeLinearColor

avatar image tomofnz Feb 09 '19 at 04:51 AM

Does this work for ENiagaraState (using int32) ?

avatar image shaipo Feb 09 '19 at 05:09 AM

By ENiagaraState, do you mean an Emitter.VariableName? If so the same method should work, just make sure your niagara system is using User.VariableName created in the system where you need to. Only User variables can be changed. But you could workaround that by setting Emitter.VariableName to User.VariableName where needs be in the system.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question