Not sure if this is a bug or not, but I cant set the initial color of the GPU particle from within a blueprint script.
the colors change when i set the constant values in the components tab and when i set the constants in cascade, but if I set it by calling either the set color param or set vector param in blueprint (or both as seen in picture), absolutely no change occurs.
I have entered this bug in with our engineers for further investigation and I will let you know when we have a solution. The report is listed as UE-5168.
Funny, I’m having the same issue right now, too. I’m using a Ribbon emitter and have it set up exactly the same as the OP. It’s drawn as black regardless of what color I input.
When using the Particle Parameter that you will want to set directly from Blueprints, please make sure that your Particle Parameter Mode is set to DIRECT.
tried to call GetVectorParameter or GetAnyVectorParameter with my parametername but i get false as a result which leads me to think the parameter is not there at all.
Using Initial Color with GPU Particles is still a known issue as of 4.11 Preview 6. I have included additional information to the bug report, UE-5168.
However there is a workaround:
Set your Initial Color Module to a Constant 1,1,1
Add a Scale Color / Life Module
In the Color Scale Over Life set the Distribution to Vector Particle Parameter
Name your parameter in Parameter Name
Under Param Modes set the 0,1 and 2 all to DPM Direct
If needed, set the Constant RGB values to 1,1,1 (will not affect outcome.)
You should now be able to control the Particle Parameter in your Blueprints. Remember you can also stack the same module more than once, so you can add another Scale Color / Life Module to control overall behavior over the particles life, if required.
I have attached a sample project below showing the setup mentioned above.
Just a small supplement: Don’t use “Initial Color” at all, instead use “Color over life” with parameters for initialization (as described above). And add “Scale Color / Life” after that module to add some non-parameter information if you want (especially distribution curve).
Furthermore, this bug will probably not be fixed (status “won’t fix”, see UE-5168), so you have to use this workaround.
The bug still exist and it has marked as Won’t Fix because it has been so long!
Now that workaround only works if you want all particles the same color at the same time. Considering defining a color is a basic thing of a particle system it would be much appreciated if anyone can fix this issue.
I have not tested yet if the same bug exists with Niagara, maybe if its working there the fix can be taken over for the regular particle systems.