# How to make a Global Color Variable

**URL:** <https://forums.unrealengine.com/t/how-to-make-a-global-color-variable/1229204>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [July 14, 2023, 5:32pm UTC](https://forums.unrealengine.com/t/how-to-make-a-global-color-variable/1229204 "2023-07-14T17:32:00Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![ReloKai](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ReloKai](https://forums.unrealengine.com/u/ReloKai)\
**Post date:** [July 20, 2023, 8:32pm UTC](https://forums.unrealengine.com/t/how-to-make-a-global-color-variable/1229204/11 "2023-07-20T20:32:03Z")

</div>

Alright, after you guys’ help and doing some fiddling around, I ended up with this:

I have this setup in my game instance (make sure that the color variables are LINEAR color, not just color):

 ![Screenshot (136)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/2/292d9b59550cd9a4df4f8d47073e6d9e76cf0abf.png)

And this setup in my Player BP (connected to Event BeginPlay):

 ![Screenshot (138)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/8/5a88e39265d31ea3a7c6b01f6877afd932c52cdf.png)

And then I have the parameter “PlayerColor” on a material that is the parent to all of the relevant materials. I should note that I added an extra material slot on the character mesh for the parent material. It doesn’t connect to anything on the mesh, it’s just there so the BP can access it.

I should note that I did NOT make a dynamic material in this case because I found this in the forums: [Issue with Material Instances (both Constant and Dynamic)](https://forums.unrealengine.com/t/issue-with-material-instances-both-constant-and-dynamic/1175892)

It seems like you don’t need to make a Dynamic Material Instance because UE does it for you anyway? That’s what I got from this post at least. In the end though, this works like a charm! Thanks for the help guys.

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-make-a-global-color-variable/1229204)._
