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 do I edit a Constant within a Particle Parameter from Blueprint?

I'm trying to link the radius of the sphere of one of the particle emitters with how much the trigger of a controller is pushed in. The more pushed in, the bigger the sphere. As far as I know, this has to be done by changing the constant in the Particle Parameter, but how do I link this constant to a value I can edit in Blueprint?

alt text alt text

Product Version: Not Selected
Tags:
more ▼

asked Mar 13 '15 at 02:24 PM in Using UE4

avatar image

-Roach-
5 1 3 4

avatar image Kbrom3d Apr 28 '15 at 04:57 PM

Bumping this as I have the same question...can change many things but a constant seems to not be one of them? Thoughts anyone? Thanks

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey Roach,

For that particular constant, you need to use a "Set Float Parameter" node in your blueprint. I am attaching a project that will help explain what I mean, but I'll also break it down for you here in case the link becomes broken in the future.

Example Project

In the example project, I've linked Numpad 8 and Numpad 2 up to manipulate the Parameter.

So what I did was make a fresh particle system and simply add a Sphere (Seed) module to the Emitter(and enabled surface only). Then I changed the Start Radius distribution type to DistributionFloatParticleParameter. Make the Parameter Name something unique ("TestParticleParameter" for me). Make the Param Mode "DPM Direct". As you know, the Constant is what we will be manipulating here, so I set mine to 50 by default.

alt text

So, I created two inputs in my project settigns called "Increase"(Numpad 8) and "Decrease"(Numpad 2).

In the following screenshot, the important node is Set Float Parameter. You must use the exact parameter name that you set in Cascade. Then hook in your particle system component.

The rest of the node network is used to increase and decrease the size as well as cap it between 0 and 250 units.

Open image in new tab to see full size alt text

Let me know if that makes sense.

-Matt W.

more ▼

answered May 05 '15 at 03:59 PM

avatar image Kbrom3d May 05 '15 at 04:05 PM

Working great on my end, thanks Matt!

avatar image -Roach- May 07 '15 at 06:00 AM

Thank you very much

avatar image hyawatha15 Aug 09 '17 at 10:59 PM

This doesn't seem to work on 4.15. If I set the parameter with Event Begin Play, it works, but after that, updating the value doesn't seem to do anything.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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