# Set material color and save it 

**URL:** <https://forums.unrealengine.com/t/set-material-color-and-save-it/2675982>\
**Category:** Blueprint\
**Tags:** Replication, unreal-engine, Multiplayer, UI, Blueprint, question\
**Created:** [November 17, 2025, 9:13pm UTC](https://forums.unrealengine.com/t/set-material-color-and-save-it/2675982 "2025-11-17T21:13:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jmm3112](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jmm3112](https://forums.unrealengine.com/u/Jmm3112)\
**Post date:** [November 17, 2025, 9:13pm UTC](https://forums.unrealengine.com/t/set-material-color-and-save-it/2675982/1 "2025-11-17T21:13:07Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/5/1d569287569f5598b551766edfd08451b057b669.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/6/706d41c8c2965373eb2424e19bceed8eafc3268b.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/2/cc217c682e3bb40af5b03782f0eff7f2954bfbbe.png)

I want to change my player material color inside the main menu with those sliders, i tried to do it with a Dynamic Material Instance inside the playerBP but they dont change because it doesn’t read the Game Save I made for some reason. The first picture is inside the Widget blueprint, the second is the SaveGame and the last is inside the player

---

<div class="post-metadata">

**Author:** ![dZh0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dZh0](https://forums.unrealengine.com/u/dZh0)\
**Post date:** [November 18, 2025, 7:56pm UTC](https://forums.unrealengine.com/t/set-material-color-and-save-it/2675982/2 "2025-11-18T19:56:34Z")

</div>

Hi there 🙂 Welcome to the forum!

So your main issue is that `S_SetPlayerColor()` is implemented (I am guessing here) in the SaveGame object. Your approach is right but this will be replicated to the server only if called from the owning client. In your case this should be implemented either in the PlayerController, the player pawn or an actor owned by the controller. I advice you to implement it in object which is creating and attaching the UI. (usually controller)

From that point on you can store it either where you called it or in the `PlayerState`object. I advice yo to use the `PlayerState` as it is automatically replicated to all other clients.

Now how should a save system work in a network environment - you have to explain more what you are trying achieve here. You can probably store the color, account name, key bindings, etc in a settings (ini) file but a local save file might work as well.

---

<div class="post-metadata">

**Author:** ![Kotaru\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kotaru\_1](https://forums.unrealengine.com/u/Kotaru_1)\
**Post date:** [November 18, 2025, 9:21pm UTC](https://forums.unrealengine.com/t/set-material-color-and-save-it/2675982/3 "2025-11-18T21:21:20Z")

</div>

it seems like you have an RPC in your save game object. However I don’t believe that save game objects are actually able to replicate by default, so “S\_SetPlayerColor” should never actually be able to execute on the server.

You’ll most likely want a players color choice to be saved locally anyway, so you shouldn’t replicate the data to the server to be saved there.

Instead, when the player chooses a color, save it locally. Then also propagate the changes to the server (from like a replicated actor or component (for example the player blueprint)), which can then replicate to clients via replicated variable.
