# How do i change character color by pressing a button

**URL:** <https://forums.unrealengine.com/t/how-do-i-change-character-color-by-pressing-a-button/468153>\
**Category:** Character & Animation\
**Tags:** character-state, unreal-engine, question\
**Created:** [July 15, 2020, 7:52am UTC](https://forums.unrealengine.com/t/how-do-i-change-character-color-by-pressing-a-button/468153 "2020-07-15T07:52:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rudi999](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rudi999](https://forums.unrealengine.com/u/Rudi999)\
**Post date:** [July 15, 2020, 7:52am UTC](https://forums.unrealengine.com/t/how-do-i-change-character-color-by-pressing-a-button/468153/1 "2020-07-15T07:52:05Z")

</div>

As the title implies, i am trying to make it so that when i press 1 2 or 3 the character body would change color to red blue and green, for instance.  
I have found this tutorial [UE4 - Tutorial - Dynamic Materials in BluePrints! (Request!) - YouTube](https://www.youtube.com/watch?v=6OTaEHfRyH8) that explains how to do it for objects but i can’t wrap my head around how to make the player Body material to do just that.  
As you can see from the pictures, i tried to make the parent of the dynamic material the body material of the mannequin, but it does not work when i press the 1 key. I have also tried to make a material color collection to reference for the player skeletal mesh that has the body material and still nothing, i am at a complete loss.

 ![307201-ue42.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/c/edcb4d74d5582238f2f138cf12c4e66ae0ff15db.jpeg)

 ![307173-ue4.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/2/32212455280e7f1bed7a3ffc553e44470ed99b8e.jpeg)

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [July 15, 2020, 9:02am UTC](https://forums.unrealengine.com/t/how-do-i-change-character-color-by-pressing-a-button/468153/2 "2020-07-15T09:02:19Z")

</div>

After creating a dynamic material this way, you need to assign it to the mesh, otherwise you’re changing the created dynamic material, but the material on the mesh is different.

---

<div class="post-metadata">

**Author:** ![Rudi999](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rudi999](https://forums.unrealengine.com/u/Rudi999)\
**Post date:** [July 16, 2020, 7:38am UTC](https://forums.unrealengine.com/t/how-do-i-change-character-color-by-pressing-a-button/468153/3 "2020-07-16T07:38:24Z")

</div>

It worked.  
It’s funny when the answer is so simple it is right in front of you and you still miss it.  
Thank you very much
