Greetings all !
I am using Unreal 4.7.4, and I just went through something which I guess is some node bug…
Lets say you have an FLinearColor variable named PlayerColor, and it has Color “Cyan” as default value (picked cyan because it is not a default color by default)
Then you set PlayerColor On BeginPlay event to lets say “Yellow”.
now, No matter where you call SetColorParameter for a particle system, using PlayerColor variable as input, it will only use the “default color” of that variable (which is “Cyan”)
Can someone try this out as well and see if I am right?
cheers
Hi FrostSnake -
How and into what module are you passing your Color Parameter? Have you set up the Vector Particle Parameter in the Particle System to use the same Parameter name as referenced in your Set Color Parameter node? Also just to confirm you are on a PC or a Mac?
Let me know -
Eric Ketchum
Into InitialColor module, and yes i set it up, and as a workaround, I used C++ SetColorParameter and it worked perfectly, so as I expected, the node has some issue I believe.
as for the param setup, this is my Module Setup:
and it works in the Actor viewport (I could see the particle, and also could change the instance color using the instance parameter)
Hi FrostSnake -
I believe I have discovered the issue. Go into your Blueprint and in the Viewport, select your Particle System. In the Particle System’s Details Panel Expose the Instance Parameters for the system. In my case it exposed a parameter named Color and in your case it should expose the LaserColor parameter. By default these are listed as Vector3 Parameters, but the Set Color Parameter node does not work on Vector3s. Simply change the Param Type to Color and the Set Color Parameter node should work for you.
Thank You
Eric Ketchum
It is set as Color, not Vector3,
I believe you still dont get the issue, I have set everything right as in this tutorial
And i got it working via C++ SetColorParameter, but couldnt get it working via Node SetColorParameter, the node always sets the color to the default value of that color variable.
Hi Frostsnake -
I setup a test project, can you look at it and make corrections where you think I am not setting something up correctly.
Pressing and Holding ‘K’ on the Keyboard will change the Flame to Green and Pressing and Holding ‘L’ on the Keyboard will change the Flame to Red. Releasing either key will return the flame back to an Orange.
Test_Project
Thank You
Eric Ketchum
Okay after trying it in your project, I guess i got what is wrong…Im using InitialColor module for my “Beam” particle effect which is a laser sight, and it seems that I cannot modify the InitialColor parameter for beams via blueprint (because it worked good on c++, unless i made something wrong)
Ill go back again to my project and use ScaleColor/Life and see if it will work.
EDIT: Yes, I tried it again using ScaleColor/Life module, and it worked perfectly. Thank you, Eric for your efforts ill use this reply as an answer.