Get Color from Dynamic Material

I have function GetColor.

I call it on LMB

And here is problem.
I get color from material or any material instance.
But when material is Dymanic i get R=0 G=0 B=0.
How to solve it???

My dynamic material changing color every 3 second.

When you hit the left mouse button, you are creating a new Dynamic Material every frame. Try Creating your Dynamic Material at BeginPlay or in the Constructor.

I create dynamic material in Constuctor!
alt text
If you about function GetColor i create dynamic materila because i don’t find any other way to get color from material.

From the first picture you showed you are creating another Dynamic Material every frame when you press the left mouse button. Use the DynMat Reference you created in the constructor in your GetColor2 Function to get the Vector Parameter Value from that.

Use the DynMat Reference you created
in the constructor in your GetColor2
Function to get the Vector Parameter
Value from that.
It’s not possible…or i don’t understand something…

Hey guys…
Why I can not open any png attached? I have always message: THE PAGE NOT EXIST OR IT IS PRIVATE
For only png…
Thanks