# How to change character color?

**URL:** <https://forums.unrealengine.com/t/how-to-change-character-color/393585>\
**Category:** Rendering\
**Tags:** ball, unreal-engine, color, UE4, question, Blueprint\
**Created:** [May 14, 2017, 4:22pm UTC](https://forums.unrealengine.com/t/how-to-change-character-color/393585 "2017-05-14T16:22:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_b17877c2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b17877c2](https://forums.unrealengine.com/u/anonymous_user_b17877c2)\
**Post date:** [May 14, 2017, 4:22pm UTC](https://forums.unrealengine.com/t/how-to-change-character-color/393585/1 "2017-05-14T16:22:16Z")

</div>

Hi All, I’m working on a third person template with the ball mesh ( from the rolling template ) as my character.

What i want to do now is roll through a trigger volume and change the color of my ball character. How can i do create this in blueprints?

---

<div class="post-metadata">

**Author:** ![redbox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@redbox](https://forums.unrealengine.com/u/redbox)\
**Post date:** [May 14, 2017, 4:31pm UTC](https://forums.unrealengine.com/t/how-to-change-character-color/393585/2 "2017-05-14T16:31:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b17877c2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b17877c2](https://forums.unrealengine.com/u/anonymous_user_b17877c2)\
**Post date:** [May 14, 2017, 7:12pm UTC](https://forums.unrealengine.com/t/how-to-change-character-color/393585/3 "2017-05-14T19:12:29Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [May 14, 2017, 8:20pm UTC](https://forums.unrealengine.com/t/how-to-change-character-color/393585/4 "2017-05-14T20:20:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b17877c2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b17877c2](https://forums.unrealengine.com/u/anonymous_user_b17877c2)\
**Post date:** [May 14, 2017, 8:31pm UTC](https://forums.unrealengine.com/t/how-to-change-character-color/393585/5 "2017-05-14T20:31:24Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![redbox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@redbox](https://forums.unrealengine.com/u/redbox)\
**Post date:** [May 15, 2017, 4:23am UTC](https://forums.unrealengine.com/t/how-to-change-character-color/393585/6 "2017-05-15T04:23:12Z")

</div>

I think the best way is to create special actor.

It will have box or sphere collision primitive, and editable variable “new color” of linear color type.

Then use its begin overlap event, cast to your player character class, get ref to dyn mat inst and set its “color” param value from “new color”

So it will be like actor that you place in level, set color you want, and it will do everything by itself.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b17877c2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b17877c2](https://forums.unrealengine.com/u/anonymous_user_b17877c2)\
**Post date:** [May 15, 2017, 12:27pm UTC](https://forums.unrealengine.com/t/how-to-change-character-color/393585/7 "2017-05-15T12:27:27Z")

</div>

Ah man thank you so much, finally it works! Thank you for the solution, i can change the colors of my character now 🙂

---

<div class="post-metadata">

**Author:** ![Fractured\_Fantasy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fractured\_Fantasy](https://forums.unrealengine.com/u/Fractured_Fantasy)\
**Post date:** [December 31, 2020, 11:01pm UTC](https://forums.unrealengine.com/t/how-to-change-character-color/393585/8 "2020-12-31T23:01:01Z")

</div>

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:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/b/35bac3c97d2342fd0f26901d07699a430f730091.jpeg "Changing individual color components for Mixamo and other 3D Unreal Engine assets.") ](https://www.youtube.com/watch?v=VLvr3TOj9kA)
