# \#variables

**URL:** https://forums.unrealengine.com/tag/variables/97.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [Can i run function or change variable from console?](https://forums.unrealengine.com/t/can-i-run-function-or-change-variable-from-console/464928)

<div class="topic-metadata">

**Author:** [@1987kostya](https://forums.unrealengine.com/u/1987kostya)\
**Replies:** 2\
**Last updated:** [September 28, 2026, 8:38pm UTC](https://forums.unrealengine.com/t/can-i-run-function-or-change-variable-from-console/464928 "2026-09-28T20:38:45Z")

</div>

Can I run a function in a specific object on the map using the console? Or maybe I can change the variable value using console

---

## [Best way to change/tune variables/settings during runtime/PIE?](https://forums.unrealengine.com/t/best-way-to-change-tune-variables-settings-during-runtime-pie/465826)

<div class="topic-metadata">

**Author:** [@Syrill](https://forums.unrealengine.com/u/Syrill)\
**Replies:** 3\
**Last updated:** [September 28, 2026, 8:29pm UTC](https://forums.unrealengine.com/t/best-way-to-change-tune-variables-settings-during-runtime-pie/465826 "2026-09-28T20:29:49Z")

</div>

I currently work on a project where the core gameplay is implemented but, since it is physics-based, now needs lots and lots of fine-tuning (several variables in the physics manipulation blueprints, weight of actor, cent…

---

## [Can't read variables from DefaultEngine.ini file. Going crazy!](https://forums.unrealengine.com/t/cant-read-variables-from-defaultengine-ini-file-going-crazy/2038575)

<div class="topic-metadata">

**Author:** [@QubaXR](https://forums.unrealengine.com/u/QubaXR)\
**Replies:** 37\
**Last updated:** [September 28, 2026, 8:12pm UTC](https://forums.unrealengine.com/t/cant-read-variables-from-defaultengine-ini-file-going-crazy/2038575 "2026-09-28T20:12:18Z")

</div>

Please help, I am losing my mind here. Posting only after reading a ton of docs and forum posts to no avail. I have a generative art project built in UE5.4.4 and would like to feed it certain parameters from a config fi…

---

## [Blueprint and Component variables don’t reset to blueprint defaults after end of PIE](https://forums.unrealengine.com/t/blueprint-and-component-variables-don-t-reset-to-blueprint-defaults-after-end-of-pie/2720189)

<div class="topic-metadata">

**Author:** [@AMadLad](https://forums.unrealengine.com/u/AMadLad)\
**Replies:** 2\
**Last updated:** [May 8, 2026, 8:40am UTC](https://forums.unrealengine.com/t/blueprint-and-component-variables-don-t-reset-to-blueprint-defaults-after-end-of-pie/2720189 "2026-05-08T08:40:31Z")

</div>

There’s a problem when an blueprint actor’s variables such as Simulate Physics or Transform are change or modified during PIE (Play in Editor) and its stays like that after ending PIE, only way to fix it was to reset the…

---

## [How do I set Default Value for a member variable in C++?](https://forums.unrealengine.com/t/how-do-i-set-default-value-for-a-member-variable-in-c/2711229)

<div class="topic-metadata">

**Author:** [@pagi111](https://forums.unrealengine.com/u/pagi111)\
**Replies:** 2\
**Last updated:** [April 4, 2026, 6:44am UTC](https://forums.unrealengine.com/t/how-do-i-set-default-value-for-a-member-variable-in-c/2711229 "2026-04-04T06:44:10Z")

</div>

Hi, So, if I create a variable in BP, under Details there is the Default Value that we can specify. If this is a var that is Instance Editable, and its value is changed, a small icon appears that allows to reset it to t…

---

## [Is it possible to forward declare TUniquePtr?](https://forums.unrealengine.com/t/is-it-possible-to-forward-declare-tuniqueptr/552946)

<div class="topic-metadata">

**Author:** [@KaidoomDev](https://forums.unrealengine.com/u/KaidoomDev)\
**Replies:** 3\
**Last updated:** [February 12, 2026, 6:28pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-forward-declare-tuniqueptr/552946 "2026-02-12T18:28:41Z")

</div>

Hi, This compiles fine using TSharedPtr in CPP However changing to TUniquePtr doesn’t compile CPP I understand I have to include the header file where that struct exists but is there no way to forward decl…

---

## [Maths Not adding up-Skips Maths completely ](https://forums.unrealengine.com/t/maths-not-adding-up-skips-maths-completely/2669865)

<div class="topic-metadata">

**Author:** [@gamekillz-62](https://forums.unrealengine.com/u/gamekillz-62)\
**Replies:** 1\
**Last updated:** [October 30, 2025, 3:21am UTC](https://forums.unrealengine.com/t/maths-not-adding-up-skips-maths-completely/2669865 "2025-10-30T03:21:49Z")

</div>

Hey guys i Have a Very simple math node that Seems to not be working, im not the best at math but am fairly sure this is a bug, so i have this Function called from the press of a button, then it checks if {\*Clicking-T…

---

## [Converting Local Variables To Member Variables Solved](https://forums.unrealengine.com/t/converting-local-variables-to-member-variables-solved/2669486)

<div class="topic-metadata">

**Author:** [@JDA2025](https://forums.unrealengine.com/u/JDA2025)\
**Replies:** 0\
**Last updated:** [October 28, 2025, 11:31pm UTC](https://forums.unrealengine.com/t/converting-local-variables-to-member-variables-solved/2669486 "2025-10-28T23:31:06Z")

</div>

Hi everyone, I know this is something that used to be a problem in Unreal engine 4 and i couldnt find any info about converting a local variable to a member variable in UE5 anywhere so i made a Plugin that lets you conv…

---

## [Custom Events Doesn't trigger Text Variables!](https://forums.unrealengine.com/t/custom-events-doesnt-trigger-text-variables/2512310)

<div class="topic-metadata">

**Author:** [@nejcfilipic](https://forums.unrealengine.com/u/nejcfilipic)\
**Replies:** 1\
**Last updated:** [May 15, 2025, 10:07pm UTC](https://forums.unrealengine.com/t/custom-events-doesnt-trigger-text-variables/2512310 "2025-05-15T22:07:33Z")

</div>

---

## [Variables referencing level actors not content browser actors.](https://forums.unrealengine.com/t/variables-referencing-level-actors-not-content-browser-actors/2438594)

<div class="topic-metadata">

**Author:** [@jpalmer999](https://forums.unrealengine.com/u/jpalmer999)\
**Replies:** 1\
**Last updated:** [April 4, 2025, 2:04am UTC](https://forums.unrealengine.com/t/variables-referencing-level-actors-not-content-browser-actors/2438594 "2025-04-04T02:04:19Z")

</div>

So I’ve made the structure of my character’s equipment slots, but I can’t find a way to make the variables use an actor from the Content Browser and not the level itself. Does anyone know how to fix this? USTRUCT(Bluepr…

---

## [Can someone explain soft variable references?](https://forums.unrealengine.com/t/can-someone-explain-soft-variable-references/444524)

<div class="topic-metadata">

**Author:** [@VagrantProfile](https://forums.unrealengine.com/u/VagrantProfile)\
**Replies:** 8\
**Last updated:** [March 30, 2025, 7:51pm UTC](https://forums.unrealengine.com/t/can-someone-explain-soft-variable-references/444524 "2025-03-30T19:51:30Z")

</div>

it seems to have to do with garbage collection and memory usage. its explained pretty well in the stackexchange post linked below.

---

## [Editor Utility Details View Or Changing Variable Categories In Functions - Need this for deadline 25th feb](https://forums.unrealengine.com/t/editor-utility-details-view-or-changing-variable-categories-in-functions-need-this-for-deadline-25th-feb/2353639)

<div class="topic-metadata">

**Author:** [@Lerza\_225](https://forums.unrealengine.com/u/Lerza_225)\
**Replies:** 0\
**Last updated:** [February 23, 2025, 11:55pm UTC](https://forums.unrealengine.com/t/editor-utility-details-view-or-changing-variable-categories-in-functions-need-this-for-deadline-25th-feb/2353639 "2025-02-23T23:55:45Z")

</div>

Hi I’m making a building generator tool and for my editor widget i wanted to have a detail panel with the setting in for the buildings, i want to be able to change the properties shown in the detail view based on which s…

---

## [Add a new line inside a Text var](https://forums.unrealengine.com/t/add-a-new-line-inside-a-text-var/314990)

<div class="topic-metadata">

**Author:** [@Flakky](https://forums.unrealengine.com/u/Flakky)\
**Replies:** 25\
**Last updated:** [February 9, 2025, 5:14am UTC](https://forums.unrealengine.com/t/add-a-new-line-inside-a-text-var/314990 "2025-02-09T05:14:09Z")

</div>

Hello guys! I ran into a problem with setting text inside UMG. As you may know, you can add ne line by pressing Shift + Enter inside text block. Like this: But the problem is that I have custom event, that sets my …

---

## [Why are Data Types from basic Propertys in Blueprint hidden in the Selection List, and how to bring tham to UserDefinedStruct ?](https://forums.unrealengine.com/t/why-are-data-types-from-basic-propertys-in-blueprint-hidden-in-the-selection-list-and-how-to-bring-tham-to-userdefinedstruct/2265093)

<div class="topic-metadata">

**Author:** [@J3lueDeamon](https://forums.unrealengine.com/u/J3lueDeamon)\
**Replies:** 0\
**Last updated:** [January 7, 2025, 10:11pm UTC](https://forums.unrealengine.com/t/why-are-data-types-from-basic-propertys-in-blueprint-hidden-in-the-selection-list-and-how-to-bring-tham-to-userdefinedstruct/2265093 "2025-01-07T22:11:01Z")

</div>

The Property was Created with the “promote to Variable” action. There are many more Examples like that and i can´t find any Editor ore Project Setting to make tham Visible.

---

## [Scrubbing Sequencer does not update Blueprint Variables](https://forums.unrealengine.com/t/scrubbing-sequencer-does-not-update-blueprint-variables/372322)

<div class="topic-metadata">

**Author:** [@BastiaanGrisel](https://forums.unrealengine.com/u/BastiaanGrisel)\
**Replies:** 19\
**Last updated:** [December 3, 2024, 3:14am UTC](https://forums.unrealengine.com/t/scrubbing-sequencer-does-not-update-blueprint-variables/372322 "2024-12-03T03:14:52Z")

</div>

I’ve created a very simple blueprint (with one static mesh component) that has as variable AnimatedScale (editable, expose to cinematics) that calls Set Actor Scale 3D in the construction script and on Tick: I’ve cre…

---

## [Trying to get a variable from one widget to another](https://forums.unrealengine.com/t/trying-to-get-a-variable-from-one-widget-to-another/2029851)

<div class="topic-metadata">

**Author:** [@davi1521](https://forums.unrealengine.com/u/davi1521)\
**Replies:** 19\
**Last updated:** [September 20, 2024, 4:40pm UTC](https://forums.unrealengine.com/t/trying-to-get-a-variable-from-one-widget-to-another/2029851 "2024-09-20T16:40:12Z")

</div>

So, I have two different widgets. The first is a dialogue box. Its structure is like this: I have functionality where, depending on the NPC you are talking to, a number of Text Blocks get created and parented to the …

---

## [Can I use a data table to randomly select item affixes (as in Diablo)?](https://forums.unrealengine.com/t/can-i-use-a-data-table-to-randomly-select-item-affixes-as-in-diablo/1805413)

<div class="topic-metadata">

**Author:** [@CrrashLandon](https://forums.unrealengine.com/u/CrrashLandon)\
**Replies:** 1\
**Last updated:** [September 13, 2024, 1:03am UTC](https://forums.unrealengine.com/t/can-i-use-a-data-table-to-randomly-select-item-affixes-as-in-diablo/1805413 "2024-09-13T01:03:30Z")

</div>

New to blueprints, I’ve created a data table with all of components needed to generate items including weights for random selection. Is it possible to look up rows by that weight if the weight is not the row name? All of…

---

## [Can't toggle between two different blueprints](https://forums.unrealengine.com/t/cant-toggle-between-two-different-blueprints/1996509)

<div class="topic-metadata">

**Author:** [@zelda28764876](https://forums.unrealengine.com/u/zelda28764876)\
**Replies:** 0\
**Last updated:** [August 29, 2024, 8:59am UTC](https://forums.unrealengine.com/t/cant-toggle-between-two-different-blueprints/1996509 "2024-08-29T08:59:23Z")

</div>

I am posting this question again because I deleted the last post by accident. I made a project that fetches API data with the VaRest plugin, returns an ID that fetches a data table row and places everything in the scene…

---

## [Using Variables in UMG animation](https://forums.unrealengine.com/t/using-variables-in-umg-animation/346521)

<div class="topic-metadata">

**Author:** [@Mrob76u](https://forums.unrealengine.com/u/Mrob76u)\
**Replies:** 15\
**Last updated:** [August 21, 2024, 4:48pm UTC](https://forums.unrealengine.com/t/using-variables-in-umg-animation/346521 "2024-08-21T16:48:20Z")

</div>

Is it possible to read in/bind key frame data to a variable in the animation tracks in widget blueprints? It would be good for dynamically changing animations. Or is it possible to access and change the key frames in …

---

## [Why don't "Expose on Spawn" variables show as input nodes on Spawn AI From Class nodes?](https://forums.unrealengine.com/t/why-dont-expose-on-spawn-variables-show-as-input-nodes-on-spawn-ai-from-class-nodes/341934)

<div class="topic-metadata">

**Author:** [@Spit\_Fyre633](https://forums.unrealengine.com/u/Spit_Fyre633)\
**Replies:** 23\
**Last updated:** [August 16, 2024, 9:12am UTC](https://forums.unrealengine.com/t/why-dont-expose-on-spawn-variables-show-as-input-nodes-on-spawn-ai-from-class-nodes/341934 "2024-08-16T09:12:23Z")

</div>

If I use Spawn Actor, the variables are shown, but when using Spawn AI, they are not. Is there a specific reason for this, or is it a bug?

---

## [Accessing int32 variable crashes the game](https://forums.unrealengine.com/t/accessing-int32-variable-crashes-the-game/464793)

<div class="topic-metadata">

**Author:** [@Althaen](https://forums.unrealengine.com/u/Althaen)\
**Replies:** 5\
**Last updated:** [June 30, 2024, 3:21am UTC](https://forums.unrealengine.com/t/accessing-int32-variable-crashes-the-game/464793 "2024-06-30T03:21:32Z")

</div>

I have a grid that I use as a map. I set an int value for the width and height but when I try to read these variables the game crashes. If I try to print out the value just after setting it the game does not crash but f…

---

## [StateTree: Change the value of a variable in an Evaluator through a Task](https://forums.unrealengine.com/t/statetree-change-the-value-of-a-variable-in-an-evaluator-through-a-task/1869482)

<div class="topic-metadata">

**Author:** [@OppaAi](https://forums.unrealengine.com/u/OppaAi)\
**Replies:** 2\
**Last updated:** [June 17, 2024, 2:19pm UTC](https://forums.unrealengine.com/t/statetree-change-the-value-of-a-variable-in-an-evaluator-through-a-task/1869482 "2024-06-17T14:19:07Z")

</div>

Hello, currently I am experimenting with the StateTree-Plugin as an alternative to the BehaviorTree. My goal: I Want to change a value of a variable in a StateTree-Evaluator but through a StateTree-Task. Problem: I tri…

---

## [Making Character Stat variables communicate with each other?](https://forums.unrealengine.com/t/making-character-stat-variables-communicate-with-each-other/1890515)

<div class="topic-metadata">

**Author:** [@ignavuss](https://forums.unrealengine.com/u/ignavuss)\
**Replies:** 6\
**Last updated:** [June 5, 2024, 3:17pm UTC](https://forums.unrealengine.com/t/making-character-stat-variables-communicate-with-each-other/1890515 "2024-06-05T15:17:25Z")

</div>

Hello there! I’ve created some stat variables for my character. But these stat’s boundaries or values can change when other stat’s changes too. For example: my current health cannot be higher than my max health, or when …

---

## [Replacing Blueprint Variable with C++ variable easier?](https://forums.unrealengine.com/t/replacing-blueprint-variable-with-c-variable-easier/292930)

<div class="topic-metadata">

**Author:** [@CJ31387](https://forums.unrealengine.com/u/CJ31387)\
**Replies:** 7\
**Last updated:** [April 13, 2024, 7:09pm UTC](https://forums.unrealengine.com/t/replacing-blueprint-variable-with-c-variable-easier/292930 "2024-04-13T19:09:40Z")

</div>

Right now since I don’t know the Engine well and C++ I’ve been making my code in blueprints then converting the code to C++, so far it has worked good but I use the same variable names. I like to unlink my blueprints aft…

---

## [Can I trust "replicated" variables? And how quickly are they replicated?](https://forums.unrealengine.com/t/can-i-trust-replicated-variables-and-how-quickly-are-they-replicated/1792490)

<div class="topic-metadata">

**Author:** [@Fairchild](https://forums.unrealengine.com/u/Fairchild)\
**Replies:** 5\
**Last updated:** [April 8, 2024, 6:00am UTC](https://forums.unrealengine.com/t/can-i-trust-replicated-variables-and-how-quickly-are-they-replicated/1792490 "2024-04-08T06:00:44Z")

</div>

The game is a grid of tiles that can be changed into walls and towers. When a player clicks on a tile actor, they may need to know whether that tile is a tower, a wall etc. The grid actors variables are all set on the s…

---

## [I am having a heck of a time understanding this.](https://forums.unrealengine.com/t/i-am-having-a-heck-of-a-time-understanding-this/1774824)

<div class="topic-metadata">

**Author:** [@Korwinthale](https://forums.unrealengine.com/u/Korwinthale)\
**Replies:** 15\
**Last updated:** [March 28, 2024, 4:35am UTC](https://forums.unrealengine.com/t/i-am-having-a-heck-of-a-time-understanding-this/1774824 "2024-03-28T04:35:35Z")

</div>

I am not new to object languages I have programmed in C base languages in the past but I am very new to the blueprint system and things that in my mind should just work never do I am so at a loss. In this example I am at…

---

## [Map Variable, add Keys and Values](https://forums.unrealengine.com/t/map-variable-add-keys-and-values/579782)

<div class="topic-metadata">

**Author:** [@Tsybe](https://forums.unrealengine.com/u/Tsybe)\
**Replies:** 10\
**Last updated:** [March 1, 2024, 10:51pm UTC](https://forums.unrealengine.com/t/map-variable-add-keys-and-values/579782 "2024-03-01T22:51:48Z")

</div>

I have a Map variable: the Key is a simple string and the Value is a structure. The structure is made by another but set to an array containing two integers. Images for better understanding: What I want to do is to…

---

## [Compare two variables.](https://forums.unrealengine.com/t/compare-two-variables/1702893)

<div class="topic-metadata">

**Author:** [@The\_Sky\_Rider](https://forums.unrealengine.com/u/The_Sky_Rider)\
**Replies:** 4\
**Last updated:** [February 21, 2024, 6:58pm UTC](https://forums.unrealengine.com/t/compare-two-variables/1702893 "2024-02-21T18:58:53Z")

</div>

So I’m trying to compare two “identical” blueprint structures (One is a duplicate of the other) and don’t know how I would do so, There is no Matches node like for individual blueprints, and the == node, as you can see…

---

## [Is there any way to set a map element specifically?](https://forums.unrealengine.com/t/is-there-any-way-to-set-a-map-element-specifically/553851)

<div class="topic-metadata">

**Author:** [@Fallerrr](https://forums.unrealengine.com/u/Fallerrr)\
**Replies:** 12\
**Last updated:** [February 14, 2024, 11:14pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-set-a-map-element-specifically/553851 "2024-02-14T23:14:57Z")

</div>

So like an array, is there a way to set a specific element in a map using two values of the same variable type the map contains? Because the “Set Map” node doesn’t have an option to choose an element. And unlike arrays, …

---

## [One variable for all characters/actors](https://forums.unrealengine.com/t/one-variable-for-all-characters-actors/1661619)

<div class="topic-metadata">

**Author:** [@Zee\_sea](https://forums.unrealengine.com/u/Zee_sea)\
**Replies:** 4\
**Last updated:** [February 4, 2024, 10:46am UTC](https://forums.unrealengine.com/t/one-variable-for-all-characters-actors/1661619 "2024-02-04T10:46:39Z")

</div>

Hi, i am really new to ue5, and I am working on my (first) project. I want to make a variable which is defined by a collision box from an actor and the main character should “work” with this variable. Is there a way to…

[Next page](https://forums.unrealengine.com/tag/variables/97.md?match_all_tags=true&page=1&tags%5B%5D=variables)
