Add vector parameter to mesh material. It will be color parameter.
In construction script create dynamic material instance from that material, store in variable, and assign it on mesh.
Now you can access this material by variable (reference).
When you need to change its color, call SetVectorParameter with this reference and name of vector parameter.
Ok i got the dynamic material setup, now how do i change the color of my character. Is it in level blueprint or character blueprint? Can you show this in blueprint?
Anywhere it suits you, you can do it anywhere, best would be if you would make functions in character that controls it’s color which can be called elsewhere. Level Blueprint should be used exclusively for level scripting, code exclusive for the level.
If color represents state of a ball, best place for setting called would be character
Thanks for the reply, i will do this in the character blueprint. Now the thing is i know how to create a function but i don’t know what nodes to use for controll over the characters color. Can you point me in the right direction?
Here is a tutorial on how to change individual components of a texture file on your character or object. I go through changing the color of both your overall single material or individual components as needed: