# \#Variable

**URL:** https://forums.unrealengine.com/tag/variable/651.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

---

## [How to assign an empty item to an index in an object array?](https://forums.unrealengine.com/t/how-to-assign-an-empty-item-to-an-index-in-an-object-array/2744299)

<div class="topic-metadata">

**Author:** [@SemanticRain619](https://forums.unrealengine.com/u/SemanticRain619)\
**Replies:** 5\
**Last updated:** [August 18, 2026, 5:31am UTC](https://forums.unrealengine.com/t/how-to-assign-an-empty-item-to-an-index-in-an-object-array/2744299 "2026-08-18T05:31:20Z")

</div>

I want to clear the items in an array without disrupting the indices; how can I remove the assigned values ​​while keeping the indices intact? I thought I could use “Set Array Elem,” but it didn’t work for this purpose.

---

## [How to turn a variable true? ](https://forums.unrealengine.com/t/how-to-turn-a-variable-true/2739861)

<div class="topic-metadata">

**Author:** [@Zander\_Lawrence](https://forums.unrealengine.com/u/Zander_Lawrence)\
**Replies:** 10\
**Last updated:** [August 4, 2026, 11:05pm UTC](https://forums.unrealengine.com/t/how-to-turn-a-variable-true/2739861 "2026-08-04T23:05:11Z")

</div>

I have a character called BP\_FirstPersonCharacter (with a boolean variable called V\_Movement) and a Collision Sphere called Movement\_Blueprint, both have collisions and when they overlap, it should turn V\_Movement true, …

---

## [How can I establish communication between a class Blueprint and animation Blueprint?](https://forums.unrealengine.com/t/how-can-i-establish-communication-between-a-class-blueprint-and-animation-blueprint/279172)

<div class="topic-metadata">

**Author:** [@Thumper](https://forums.unrealengine.com/u/Thumper)\
**Replies:** 7\
**Last updated:** [June 14, 2026, 6:46pm UTC](https://forums.unrealengine.com/t/how-can-i-establish-communication-between-a-class-blueprint-and-animation-blueprint/279172 "2026-06-14T18:46:35Z")

</div>

I have an actor class I’ve created - lets call it cylinder. This class has a blue print where I collect and store the player characters X and Y location in two variables called Xposition, Yposition. This cylinder has s…

---

## [Can't assign a world actor to a variable in a publicly actor array](https://forums.unrealengine.com/t/cant-assign-a-world-actor-to-a-variable-in-a-publicly-actor-array/2709777)

<div class="topic-metadata">

**Author:** [@ToniccWotar](https://forums.unrealengine.com/u/ToniccWotar)\
**Replies:** 2\
**Last updated:** [March 30, 2026, 1:53am UTC](https://forums.unrealengine.com/t/cant-assign-a-world-actor-to-a-variable-in-a-publicly-actor-array/2709777 "2026-03-30T01:53:39Z")

</div>

This is definitely a bug. Sometimes, it becomes impossible to assign values ​​to actor array variables of actors placed in the world in the editor.Normally, values ​​are assigned using the eyedropper tool or by selectin…

---

## [How do i store multiple locations into a single variable easily?](https://forums.unrealengine.com/t/how-do-i-store-multiple-locations-into-a-single-variable-easily/2700165)

<div class="topic-metadata">

**Author:** [@DravenMalak](https://forums.unrealengine.com/u/DravenMalak)\
**Replies:** 3\
**Last updated:** [February 23, 2026, 5:13pm UTC](https://forums.unrealengine.com/t/how-do-i-store-multiple-locations-into-a-single-variable-easily/2700165 "2026-02-23T17:13:39Z")

</div>

I don’t want certain meshes to exist in the level by default. I know I can hide/unhide, but that wont work here. I want them to appear in a random location when they are needed. I am trying to create a vector matrix to s…

---

## [How to pass Array Attributes to spawned actors in PCG?](https://forums.unrealengine.com/t/how-to-pass-array-attributes-to-spawned-actors-in-pcg/2634540)

<div class="topic-metadata">

**Author:** [@Extrahdmi](https://forums.unrealengine.com/u/Extrahdmi)\
**Replies:** 7\
**Last updated:** [December 12, 2025, 9:49am UTC](https://forums.unrealengine.com/t/how-to-pass-array-attributes-to-spawned-actors-in-pcg/2634540 "2025-12-12T09:49:07Z")

</div>

Is there a way to pass an Array Attribute to an actor Array Variable? I would like to know if I can override the array, or assign it to each index in a loop, or if there is any other way. Currently it seems that one va…

---

## [Movie Render Queue/Graph with Custom Output Directory and File Naming  ](https://forums.unrealengine.com/t/movie-render-queue-graph-with-custom-output-directory-and-file-naming/2674697)

<div class="topic-metadata">

**Author:** [@Doger34](https://forums.unrealengine.com/u/Doger34)\
**Replies:** 1\
**Last updated:** [November 19, 2025, 6:44pm UTC](https://forums.unrealengine.com/t/movie-render-queue-graph-with-custom-output-directory-and-file-naming/2674697 "2025-11-19T18:44:21Z")

</div>

Is it possible to use variables defined within the Movie Render Queue (MRQ) for naming folders or filenames? Basically, my goal is to define variables in the Movie Render Graph (MRG) and then populate them within the Mov…

---

## [How to manually set an actor component to an array of actors in the world?](https://forums.unrealengine.com/t/how-to-manually-set-an-actor-component-to-an-array-of-actors-in-the-world/2657468)

<div class="topic-metadata">

**Author:** [@Extrahdmi](https://forums.unrealengine.com/u/Extrahdmi)\
**Replies:** 0\
**Last updated:** [September 17, 2025, 8:25am UTC](https://forums.unrealengine.com/t/how-to-manually-set-an-actor-component-to-an-array-of-actors-in-the-world/2657468 "2025-09-17T08:25:39Z")

</div>

In the world, we should be able to directly specify object variables that are instance-editable, but it seems that we can’t do that with actor components. Even though it is a component owned by the actor itself, it canno…

---

## [How to get Blueprint to Blueprint Variable Communication](https://forums.unrealengine.com/t/how-to-get-blueprint-to-blueprint-variable-communication/1677776)

<div class="topic-metadata">

**Author:** [@Lemon\_Mann](https://forums.unrealengine.com/u/Lemon_Mann)\
**Replies:** 1\
**Last updated:** [August 31, 2025, 4:11am UTC](https://forums.unrealengine.com/t/how-to-get-blueprint-to-blueprint-variable-communication/1677776 "2025-08-31T04:11:28Z")

</div>

I’m very new to Unreal Engine, and I’m currently working on a long-term project. I’ve been coding in C# and C++ for several years, so blueprints and their limitations often get mixed up with what you can do manually codi…

---

## [Why does my variable not update when its instance editable? ](https://forums.unrealengine.com/t/why-does-my-variable-not-update-when-its-instance-editable/2579459)

<div class="topic-metadata">

**Author:** [@OrangeAedan](https://forums.unrealengine.com/u/OrangeAedan)\
**Replies:** 7\
**Last updated:** [June 27, 2025, 5:50pm UTC](https://forums.unrealengine.com/t/why-does-my-variable-not-update-when-its-instance-editable/2579459 "2025-06-27T17:50:07Z")

</div>

I have two variables. Both are instance editable and exposed on spawn. A text and image are set based on their value. And when I set them manually in the parent blueprint, they show up in the last image. But when …

---

## [Any way to access Blueprint class node anonymous variables through reflection?](https://forums.unrealengine.com/t/any-way-to-access-blueprint-class-node-anonymous-variables-through-reflection/2544530)

<div class="topic-metadata">

**Author:** [@Nameless\_Voice](https://forums.unrealengine.com/u/Nameless_Voice)\
**Replies:** 2\
**Last updated:** [June 7, 2025, 2:12pm UTC](https://forums.unrealengine.com/t/any-way-to-access-blueprint-class-node-anonymous-variables-through-reflection/2544530 "2025-06-07T14:12:18Z")

</div>

I’m wondering if there’s any way to access the variables stored inside Blueprint nodes, through reflection? I’m taking about things like the DoOnce macro or the DoOnceMultiInput node, which both expand out to a Temporar…

---

## [Enum, Struct variables select in project window shortcut](https://forums.unrealengine.com/t/enum-struct-variables-select-in-project-window-shortcut/2572497)

<div class="topic-metadata">

**Author:** [@pmaximus](https://forums.unrealengine.com/u/pmaximus)\
**Replies:** 0\
**Last updated:** [June 23, 2025, 4:44pm UTC](https://forums.unrealengine.com/t/enum-struct-variables-select-in-project-window-shortcut/2572497 "2025-06-23T16:44:38Z")

</div>

Hello, I would really love to have a Browse button that selects an enum or struct in the Content Browser. Right now, if I want to find these assets, I have to search through the entire project manually. It could al…

---

## [Getting a percentage of a Float or Integer](https://forums.unrealengine.com/t/getting-a-percentage-of-a-float-or-integer/394057)

<div class="topic-metadata">

**Author:** [@Freudian](https://forums.unrealengine.com/u/Freudian)\
**Replies:** 8\
**Last updated:** [May 23, 2025, 7:52pm UTC](https://forums.unrealengine.com/t/getting-a-percentage-of-a-float-or-integer/394057 "2025-05-23T19:52:31Z")

</div>

Getting a percentage of a Float or Integer I want to be able to set a Variable with a value that is equal to the percentage of another Integer or Float. For example, reducing the players movement speed at a percentage of…

---

## [How do I clear a variable?](https://forums.unrealengine.com/t/how-do-i-clear-a-variable/281142)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_80025496](https://forums.unrealengine.com/u/anonymous_user_80025496)\
**Replies:** 15\
**Last updated:** [May 20, 2025, 5:41pm UTC](https://forums.unrealengine.com/t/how-do-i-clear-a-variable/281142 "2025-05-20T17:41:58Z")

</div>

Very sorry if this has been asked before, but I couldn’t find an answer. How do I set a variable to nothing/nil/null/none etc? Scenario: I set a variable on an actor when it collides with another actor, I want to clear…

---

## [Dynamic Clamp @Editable (Like Post\_Process\_Device)](https://forums.unrealengine.com/t/dynamic-clamp-editable-like-post-process-device/2487925)

<div class="topic-metadata">

**Author:** [@Hicsy](https://forums.unrealengine.com/u/Hicsy)\
**Replies:** 0\
**Last updated:** [May 3, 2025, 5:16am UTC](https://forums.unrealengine.com/t/dynamic-clamp-editable-like-post-process-device/2487925 "2025-05-03T05:16:39Z")

</div>

post\_process\_device{}::Starting\_Strength clamps based on Blend\_In\_Strength. Possible in Verse yet? Hi Friends! Verse used to throw an error if you had the @editable clamp based on a variable… but I can see that post\_…

---

## [BPC conversant not showing up ](https://forums.unrealengine.com/t/bpc-conversant-not-showing-up/2430753)

<div class="topic-metadata">

**Author:** [@XXmoominstarXX](https://forums.unrealengine.com/u/XXmoominstarXX)\
**Replies:** 2\
**Last updated:** [March 31, 2025, 1:51am UTC](https://forums.unrealengine.com/t/bpc-conversant-not-showing-up/2430753 "2025-03-31T01:51:48Z")

</div>

hello! im following tutoiral for the Dialogue System. and im trying to get a BPC conversant as a object type once i made the variable. But it’s not showing up when i type it in my unreal. why could this be and how do i g…

---

## [Combined score only working for client not server](https://forums.unrealengine.com/t/combined-score-only-working-for-client-not-server/2410597)

<div class="topic-metadata">

**Author:** [@Kyle54106](https://forums.unrealengine.com/u/Kyle54106)\
**Replies:** 4\
**Last updated:** [March 24, 2025, 2:41pm UTC](https://forums.unrealengine.com/t/combined-score-only-working-for-client-not-server/2410597 "2025-03-24T14:41:17Z")

</div>

Hello there! I’m working on a simple scoring function for a co-op game. When players overlap a target, it adds 5000 to their personal score. What I’m looking to do is have the combined personal score for each player be …

---

## [Variable is Set with Function, But Always Goes on To Use the Default Value](https://forums.unrealengine.com/t/variable-is-set-with-function-but-always-goes-on-to-use-the-default-value/2377805)

<div class="topic-metadata">

**Author:** [@Maximum.Dino](https://forums.unrealengine.com/u/Maximum.Dino)\
**Replies:** 1\
**Last updated:** [March 6, 2025, 2:12pm UTC](https://forums.unrealengine.com/t/variable-is-set-with-function-but-always-goes-on-to-use-the-default-value/2377805 "2025-03-06T14:12:17Z")

</div>

Hello, I’m super confused about why I’m unable to set a variable. For context, this has been happening in multiple situations and I’m thinking I somehow am missing something huge that I should know but don’t. So I’m tryi…

---

## [Change Variable with button press (enhanced input) UE 5.51](https://forums.unrealengine.com/t/change-variable-with-button-press-enhanced-input-ue-5-51/2332991)

<div class="topic-metadata">

**Author:** [@UnknownDinoDev](https://forums.unrealengine.com/u/UnknownDinoDev)\
**Replies:** 3\
**Last updated:** [February 15, 2025, 8:09pm UTC](https://forums.unrealengine.com/t/change-variable-with-button-press-enhanced-input-ue-5-51/2332991 "2025-02-15T20:09:34Z")

</div>

So I am trying to change a float variable to 1 by pressing the space button. I try to print it on a string but there is no feedback. If I use analog stick it works great! Can anyone help? My setup: Input action …

---

## [Ryan Laley Inventory Tutorial - Item ID identification issues](https://forums.unrealengine.com/t/ryan-laley-inventory-tutorial-item-id-identification-issues/2325619)

<div class="topic-metadata">

**Author:** [@Maximum.Dino](https://forums.unrealengine.com/u/Maximum.Dino)\
**Replies:** 0\
**Last updated:** [February 10, 2025, 12:58pm UTC](https://forums.unrealengine.com/t/ryan-laley-inventory-tutorial-item-id-identification-issues/2325619 "2025-02-10T12:58:30Z")

</div>

Hello! I followed Ryan Laley’s inventory tutorial, and there’s one thing I’m missing. I have two working items using the system, but if I try to create another, it shows up in my inventory as a seashell. Seashell is one …

---

## [How to use "Array Sum" variable?](https://forums.unrealengine.com/t/how-to-use-array-sum-variable/2127455)

<div class="topic-metadata">

**Author:** [@turbotanaka](https://forums.unrealengine.com/u/turbotanaka)\
**Replies:** 3\
**Last updated:** [November 19, 2024, 2:51pm UTC](https://forums.unrealengine.com/t/how-to-use-array-sum-variable/2127455 "2024-11-19T14:51:36Z")

</div>

I stumbled across this strange variable while searching for a way to calculate the sum of an array. It has one input which is an array, and on the output there is an array plus a single pin which appears to give the sum…

---

## [Class of object variables unkown](https://forums.unrealengine.com/t/class-of-object-variables-unkown/2063842)

<div class="topic-metadata">

**Author:** [@Tmny](https://forums.unrealengine.com/u/Tmny)\
**Replies:** 6\
**Last updated:** [October 21, 2024, 2:20pm UTC](https://forums.unrealengine.com/t/class-of-object-variables-unkown/2063842 "2024-10-21T14:20:41Z")

</div>

Apologies in advance, but I can’t find an answer to this basic question and ChatGPT is confused as hell. I am spawning an actor by class in the BP\_FirstPersonCharacter of the starter content, which works find when selec…

---

## [Having trouble figuring out why I can't get this variable (Warning: very convoluted blueprint)](https://forums.unrealengine.com/t/having-trouble-figuring-out-why-i-cant-get-this-variable-warning-very-convoluted-blueprint/2070427)

<div class="topic-metadata">

**Author:** [@davi1521](https://forums.unrealengine.com/u/davi1521)\
**Replies:** 4\
**Last updated:** [October 16, 2024, 11:06pm UTC](https://forums.unrealengine.com/t/having-trouble-figuring-out-why-i-cant-get-this-variable-warning-very-convoluted-blueprint/2070427 "2024-10-16T23:06:43Z")

</div>

I’ve got a real doozy of a pickle here if you need a puzzle to work on. I have a dialogue box. It looks like this: !\[image|690x446\](upload://2i5mQjLyJF9vyUHKaLpKKiSpRZh.png When you interact with an NPC, the game paus…

---

## [Question about map variables](https://forums.unrealengine.com/t/question-about-map-variables/2046693)

<div class="topic-metadata">

**Author:** [@davi1521](https://forums.unrealengine.com/u/davi1521)\
**Replies:** 5\
**Last updated:** [October 2, 2024, 10:00am UTC](https://forums.unrealengine.com/t/question-about-map-variables/2046693 "2024-10-02T10:00:46Z")

</div>

Does anyone know how many key-value pairs a map variable can hold? Is there a limit? And, when the map is being called on for a function, are all of the keys and values in memory at that point in time? Only the keys? I…

---

## [Passing an object vs passing variables within an object.](https://forums.unrealengine.com/t/passing-an-object-vs-passing-variables-within-an-object/2006089)

<div class="topic-metadata">

**Author:** [@turbotanaka](https://forums.unrealengine.com/u/turbotanaka)\
**Replies:** 2\
**Last updated:** [September 5, 2024, 8:13am UTC](https://forums.unrealengine.com/t/passing-an-object-vs-passing-variables-within-an-object/2006089 "2024-09-05T08:13:06Z")

</div>

I’m trying to change a variable within an object. Initially, I was planning to just get the variables from the object in advance and pass them down, but since I needed a reference to save them, I switched to passing the…

---

## [I need to store separate values to Variables in different Blueprints of the same class during runtime - but I can't figure it out.](https://forums.unrealengine.com/t/i-need-to-store-separate-values-to-variables-in-different-blueprints-of-the-same-class-during-runtime-but-i-cant-figure-it-out/1917398)

<div class="topic-metadata">

**Author:** [@JordvL](https://forums.unrealengine.com/u/JordvL)\
**Replies:** 1\
**Last updated:** [June 26, 2024, 6:20pm UTC](https://forums.unrealengine.com/t/i-need-to-store-separate-values-to-variables-in-different-blueprints-of-the-same-class-during-runtime-but-i-cant-figure-it-out/1917398 "2024-06-26T18:20:24Z")

</div>

Hopefully this makes sense, I’m dealing with a lot of similar terminology here lol. Basically: I have NPC’s that I go up and enter dialogue with. When the player exits the dialogue - I want to store the specific row of…

---

## [How to get a reference of the weapon, in all the bullets ?](https://forums.unrealengine.com/t/how-to-get-a-reference-of-the-weapon-in-all-the-bullets/1912720)

<div class="topic-metadata">

**Author:** [@RXDlANCE](https://forums.unrealengine.com/u/RXDlANCE)\
**Replies:** 2\
**Last updated:** [June 24, 2024, 10:46am UTC](https://forums.unrealengine.com/t/how-to-get-a-reference-of-the-weapon-in-all-the-bullets/1912720 "2024-06-24T10:46:47Z")

</div>

Hello, guys, So, I’ve got a weapon that got a bool variables “HookIsHooked”. When this weapon launches a hook, I’d like to get a reference of this weapon in my hook blueprint, so when my hook does something, like hitti…

---

## [Switch Between Child Blueprints in Parent Blueprint?](https://forums.unrealengine.com/t/switch-between-child-blueprints-in-parent-blueprint/1820141)

<div class="topic-metadata">

**Author:** [@Anthony\_Dimovski](https://forums.unrealengine.com/u/Anthony_Dimovski)\
**Replies:** 1\
**Last updated:** [June 7, 2024, 11:27pm UTC](https://forums.unrealengine.com/t/switch-between-child-blueprints-in-parent-blueprint/1820141 "2024-06-07T23:27:30Z")

</div>

Hello, Not sure if it’s even possible. But I’m looking how to swap between blueprints using a ‘master’ BP which I can place down in the level to quickly put together a set of roads, while keeping intact all the variable…

---

## [How to play Sound when all Booleans are true](https://forums.unrealengine.com/t/how-to-play-sound-when-all-booleans-are-true/1867992)

<div class="topic-metadata">

**Author:** [@avdain](https://forums.unrealengine.com/u/avdain)\
**Replies:** 18\
**Last updated:** [May 22, 2024, 10:48pm UTC](https://forums.unrealengine.com/t/how-to-play-sound-when-all-booleans-are-true/1867992 "2024-05-22T22:48:42Z")

</div>

Hey, I’ve already added SET and at the moment I don’t know how to check all the variables to see if they are true so that another event can be executed? Thanks. Get Level Blueprint Set First 1 - Widget Blueprint …

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