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?
asked Mar 13 '15 at 02:24 PM in Using UE4
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.
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.
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
Let me know if that makes sense.
answered May 05 '15 at 03:59 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here