# Store constant values in Blueprints

**URL:** <https://forums.unrealengine.com/t/store-constant-values-in-blueprints/2659716>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [September 25, 2025, 8:06am UTC](https://forums.unrealengine.com/t/store-constant-values-in-blueprints/2659716 "2025-09-25T08:06:54Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [September 25, 2025, 8:06am UTC](https://forums.unrealengine.com/t/store-constant-values-in-blueprints/2659716/1 "2025-09-25T08:06:54Z")

</div>

Hi!

While I’m developing I want to store these constant values somewhere to easily modify it, instead of looking inside the code where they are:

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/8/288dfc40018580527f6ae38d32f6c810b3755045.png)

How can I do it? With a configuration file. With a constant file (if it exists in Blueprint).

Thank you!

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [September 25, 2025, 6:41pm UTC](https://forums.unrealengine.com/t/store-constant-values-in-blueprints/2659716/2 "2025-09-25T18:41:55Z")

</div>

Store the variables in the game instance if they need to carry through levels like player life counts and credits etc etc.

Store them in gamemode or the character bp if you don’t care about them getting reset when you change levels.

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [September 25, 2025, 7:51pm UTC](https://forums.unrealengine.com/t/store-constant-values-in-blueprints/2659716/3 "2025-09-25T19:51:44Z")

</div>

You can create a simple actor class that you drop in the level and have the GM, GS, GI etc reference. I’ve done this in the past for Levels that have different values for settings. Now I use Data Tables.

---

<div class="post-metadata">

**Author:** ![nande](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nande/32/1057698_2.png) [@nande](https://forums.unrealengine.com/u/nande)\
**Post date:** [September 26, 2025, 4:34am UTC](https://forums.unrealengine.com/t/store-constant-values-in-blueprints/2659716/4 "2025-09-26T04:34:37Z")

</div>

above suggestions are good. my fav is data tables.

another option are data assets.

alternatively you can also mark attributes as config file available, and then they can be set on the .ini files after packaging. but for this i suggest using a base class.

you can also have a DeveloperSettings class, so that you can set them on the settings, and obtain during runtime.

---

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [September 26, 2025, 5:36am UTC](https://forums.unrealengine.com/t/store-constant-values-in-blueprints/2659716/5 "2025-09-26T05:36:43Z")

</div>

> [@usa423](#):
>
> Store the variables

The values are **constant** not **variable**.

---

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [September 26, 2025, 5:37am UTC](https://forums.unrealengine.com/t/store-constant-values-in-blueprints/2659716/6 "2025-09-26T05:37:37Z")

</div>

> [@nande](#):
>
> a DeveloperSettings class

What do you mean? A blueprint class?

Thank you.

---

<div class="post-metadata">

**Author:** ![nande](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nande/32/1057698_2.png) [@nande](https://forums.unrealengine.com/u/nande)\
**Post date:** [September 26, 2025, 5:51am UTC](https://forums.unrealengine.com/t/store-constant-values-in-blueprints/2659716/7 "2025-09-26T05:51:34Z")

</div>

Developer settings and data tables and data assets are the preferred way to store data/config.

This is dev settings [Developer Settings · Unreal🌱Garden](https://unreal-garden.com/tutorials/developer-settings/)

I dont recall exactly but you might need cpp. Take a read to confirm.

---

<div class="post-metadata">

**Author:** ![nande](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nande/32/1057698_2.png) [@nande](https://forums.unrealengine.com/u/nande)\
**Post date:** [September 26, 2025, 5:53am UTC](https://forums.unrealengine.com/t/store-constant-values-in-blueprints/2659716/8 "2025-09-26T05:53:01Z")

</div>

Don’t stress about it. All values except literals have to be stored in variables. Literals are stored in memory anyway.

A variable that doesn’t change is good enough as a constant.

(A nod is as good as a wink to a blind horse, i say)

---

<div class="post-metadata">

**Author:** ![patrickoh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@patrickoh](https://forums.unrealengine.com/u/patrickoh)\
**Post date:** [September 26, 2025, 1:39pm UTC](https://forums.unrealengine.com/t/store-constant-values-in-blueprints/2659716/9 "2025-09-26T13:39:50Z")

</div>

The most convenient way I’ve found to do this in just blueprint is to simply create a function library with pure functions that return the values. They’re easy to access from anywhere that way, without needing any additional nodes.

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [September 26, 2025, 5:45pm UTC](https://forums.unrealengine.com/t/store-constant-values-in-blueprints/2659716/10 "2025-09-26T17:45:54Z")

</div>

> [@ViaCognita](#):
>
> The values are **constant** not **variable**.

What I meant.
