# \#enumeration

**URL:** https://forums.unrealengine.com/tag/enumeration/200.md

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

---

## [String to Enum blueprint](https://forums.unrealengine.com/t/string-to-enum-blueprint/350341)

<div class="topic-metadata">

**Author:** [@Jojii](https://forums.unrealengine.com/u/Jojii)\
**Replies:** 19\
**Last updated:** [August 26, 2025, 11:38am UTC](https://forums.unrealengine.com/t/string-to-enum-blueprint/350341 "2025-08-26T11:38:13Z")

</div>

Hello, is it possible to select from a String an enum, so that I give a String and get an enum in blueprint? Thanks. Jojii.

---

## [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 properly loop through enumerations](https://forums.unrealengine.com/t/how-to-properly-loop-through-enumerations/333671)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f0c60e70](https://forums.unrealengine.com/u/anonymous_user_f0c60e70)\
**Replies:** 5\
**Last updated:** [April 6, 2024, 9:47pm UTC](https://forums.unrealengine.com/t/how-to-properly-loop-through-enumerations/333671 "2024-04-06T21:47:40Z")

</div>

I created a enum and added entries. if I loop through them using “ForEach myEnum” node in a blueprint, some of the enum values will come out as none. Converting the byte to int, the values range from 0 to 1 minus the num…

---

## [C++ function with UENUM input shows it as "unsupported" in BP](https://forums.unrealengine.com/t/c-function-with-uenum-input-shows-it-as-unsupported-in-bp/1517165)

<div class="topic-metadata">

**Author:** [@MisterPixel](https://forums.unrealengine.com/u/MisterPixel)\
**Replies:** 2\
**Last updated:** [December 11, 2023, 3:34pm UTC](https://forums.unrealengine.com/t/c-function-with-uenum-input-shows-it-as-unsupported-in-bp/1517165 "2023-12-11T15:34:43Z")

</div>

Hello! So, I’ve created a very simple UENUM in my custom Actor’s .h header file, which looks like this: Please have in mind that this UENUM declaration is outside my custom Actor’s UCLASS declaration, but in the same…

---

## [Widget recognize Enum but don't desplay the Name nor the Content of de Data Table](https://forums.unrealengine.com/t/widget-recognize-enum-but-dont-desplay-the-name-nor-the-content-of-de-data-table/1388031)

<div class="topic-metadata">

**Author:** [@DarkHeavySoul](https://forums.unrealengine.com/u/DarkHeavySoul)\
**Replies:** 1\
**Last updated:** [November 13, 2023, 7:54pm UTC](https://forums.unrealengine.com/t/widget-recognize-enum-but-dont-desplay-the-name-nor-the-content-of-de-data-table/1388031 "2023-11-13T19:54:09Z")

</div>

Hi! I’ve bought CCGtoolkit but wanted to learn from it, since I wanted to create a card game that function pretty differently from what CCGtoolkit comes with. I unfortunately hit a wall when creating a DeckBuilder Widg…

---

## [Setting combo box using Enum](https://forums.unrealengine.com/t/setting-combo-box-using-enum/400617)

<div class="topic-metadata">

**Author:** [@Koaku](https://forums.unrealengine.com/u/Koaku)\
**Replies:** 4\
**Last updated:** [July 12, 2022, 1:18pm UTC](https://forums.unrealengine.com/t/setting-combo-box-using-enum/400617 "2022-07-12T13:18:13Z")

</div>

Hi Koaku, if you right click in the graph and search for your desired enum, a ForEach \[yourEnum\] option should appear under Utilities \> Enum.

---

## [is there a way i can switch between 2 cameras by which weapon my character is holding?](https://forums.unrealengine.com/t/is-there-a-way-i-can-switch-between-2-cameras-by-which-weapon-my-character-is-holding/458879)

<div class="topic-metadata">

**Author:** [@DAYSRKONDR](https://forums.unrealengine.com/u/DAYSRKONDR)\
**Replies:** 7\
**Last updated:** [November 27, 2019, 10:59pm UTC](https://forums.unrealengine.com/t/is-there-a-way-i-can-switch-between-2-cameras-by-which-weapon-my-character-is-holding/458879 "2019-11-27T22:59:15Z")

</div>

I know how to do this on a button press or a trigger box, but i want the camera to switch when i change weapon from rifle to pistol for example? like how i blend pose by weapon type enum but instead for the camera?

---

## [How do you set Enum Slots == Widget Blueprints](https://forums.unrealengine.com/t/how-do-you-set-enum-slots-widget-blueprints/458235)

<div class="topic-metadata">

**Author:** [@Haturn\_Phoenix](https://forums.unrealengine.com/u/Haturn_Phoenix)\
**Replies:** 3\
**Last updated:** [November 10, 2019, 7:12pm UTC](https://forums.unrealengine.com/t/how-do-you-set-enum-slots-widget-blueprints/458235 "2019-11-10T19:12:05Z")

</div>

Hello Everyone I am currently working on an equipment system for my game. I have a function with an input that has UI\_EquipSlot(my equipment slot button). I have broken my item structure and there is an item slot(an Enu…

---

## [Behavior Tree Enum Not Switching](https://forums.unrealengine.com/t/behavior-tree-enum-not-switching/456824)

<div class="topic-metadata">

**Author:** [@Overwatch04](https://forums.unrealengine.com/u/Overwatch04)\
**Replies:** 0\
**Last updated:** [October 12, 2019, 4:06am UTC](https://forums.unrealengine.com/t/behavior-tree-enum-not-switching/456824 "2019-10-12T04:06:33Z")

</div>

I am still trying to wrap my head around behavior trees. I may be going about this wrong but I cannot get my states to switch. I have Idle, Attack, and Search as states for my character. The ‘State Finder’ returns the co…

---

## [Difficulty Using Enumerator to Map Two Buttons to One Action - Dashing in Four Directions](https://forums.unrealengine.com/t/difficulty-using-enumerator-to-map-two-buttons-to-one-action-dashing-in-four-directions/435960)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_1d98fa3a](https://forums.unrealengine.com/u/anonymous_user_1d98fa3a)\
**Replies:** 1\
**Last updated:** [October 19, 2018, 9:55pm UTC](https://forums.unrealengine.com/t/difficulty-using-enumerator-to-map-two-buttons-to-one-action-dashing-in-four-directions/435960 "2018-10-19T21:55:25Z")

</div>

Hello, I am a beginner at Unreal Blueprints and I asked for some advice the other day about how to map two buttons to one action and was given the advice to use enumerators, but, I’m stuck at a step. Now, I just want i…

---

## [How can I change the projectile I'm shooting, but switch back to the original projectile?](https://forums.unrealengine.com/t/how-can-i-change-the-projectile-im-shooting-but-switch-back-to-the-original-projectile/306899)

<div class="topic-metadata">

**Author:** [@AnonAlexander\_1](https://forums.unrealengine.com/u/AnonAlexander_1)\
**Replies:** 2\
**Last updated:** [May 4, 2018, 12:57pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-projectile-im-shooting-but-switch-back-to-the-original-projectile/306899 "2018-05-04T12:57:23Z")

</div>

So I’m currently using the FPS template that unreal gives you and I started with the c++ version and not the blueprinting. In my game, I want to be able to shoot a projectile, but say if I get a powerup, I want to change…

---

## [How to bind an image to Enumeration?](https://forums.unrealengine.com/t/how-to-bind-an-image-to-enumeration/415809)

<div class="topic-metadata">

**Author:** [@n1emesis](https://forums.unrealengine.com/u/n1emesis)\
**Replies:** 4\
**Last updated:** [February 11, 2018, 1:51pm UTC](https://forums.unrealengine.com/t/how-to-bind-an-image-to-enumeration/415809 "2018-02-11T13:51:54Z")

</div>

Hello I have question, I have Enumeration for a Level Select, how to bind a different image as button background? and thanks

---

## [Switch on Enum losing enumeration names](https://forums.unrealengine.com/t/switch-on-enum-losing-enumeration-names/285281)

<div class="topic-metadata">

**Author:** [@tomofnz](https://forums.unrealengine.com/u/tomofnz)\
**Replies:** 9\
**Last updated:** [March 22, 2017, 10:32am UTC](https://forums.unrealengine.com/t/switch-on-enum-losing-enumeration-names/285281 "2017-03-22T10:32:40Z")

</div>

The entries in my enum asset called ButtonStateSwap are Up, Over, Pressed, Disabled and they show up as such when I place a Switch on ButtonStateSwap. When I go back to edit my graphs at intervals I notice that the usag…

---

## [Using more than one type of Damage and Weapon Classes](https://forums.unrealengine.com/t/using-more-than-one-type-of-damage-and-weapon-classes/372905)

<div class="topic-metadata">

**Author:** [@LeviathanFlux](https://forums.unrealengine.com/u/LeviathanFlux)\
**Replies:** 0\
**Last updated:** [October 9, 2016, 9:10pm UTC](https://forums.unrealengine.com/t/using-more-than-one-type-of-damage-and-weapon-classes/372905 "2016-10-09T21:10:08Z")

</div>

I would like to register damage from various types of weapons such as arrow projectiles and melee attacks. I am able to accomplish inflicting damage to a health bar, but would also like to have damage affect a defense/s…

---

## [Create enum based off text file](https://forums.unrealengine.com/t/create-enum-based-off-text-file/370621)

<div class="topic-metadata">

**Author:** [@Entropikz](https://forums.unrealengine.com/u/Entropikz)\
**Replies:** 0\
**Last updated:** [September 16, 2016, 1:16pm UTC](https://forums.unrealengine.com/t/create-enum-based-off-text-file/370621 "2016-09-16T13:16:58Z")

</div>

Hey everyone! Is it possible to create an enumeration or even a string array based off of a text file? For example, let’s say I wanted to take a dictionary text file and upload it to UE4, could I then use that text fil…

---

## [Use BP Enumeration asset as UPROPERTY in c++ class](https://forums.unrealengine.com/t/use-bp-enumeration-asset-as-uproperty-in-c-class/327332)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_5d61bb2c](https://forums.unrealengine.com/u/anonymous_user_5d61bb2c)\
**Replies:** 1\
**Last updated:** [July 28, 2016, 2:00pm UTC](https://forums.unrealengine.com/t/use-bp-enumeration-asset-as-uproperty-in-c-class/327332 "2016-07-28T14:00:37Z")

</div>

Hello, I am trying to attach a BP Enumeration asset to a custom c++ class in a way that will expose it within the editor. However, I’m running into a lot of trouble. I’m able to attach the asset as a UEnum\*. However,…

---

## [Why does player state reference break when opening a project?](https://forums.unrealengine.com/t/why-does-player-state-reference-break-when-opening-a-project/361469)

<div class="topic-metadata">

**Author:** [@paradoc](https://forums.unrealengine.com/u/paradoc)\
**Replies:** 1\
**Last updated:** [June 28, 2016, 4:04pm UTC](https://forums.unrealengine.com/t/why-does-player-state-reference-break-when-opening-a-project/361469 "2016-06-28T16:04:17Z")

</div>

I’ve run into a situation with a custom player state. I’ve created a new player state child class and assigned it to the custom game mode. This player state has an enumeration variable in it. Various actors in my game…

---

## ["The current value of the 'enum' is invaild](https://forums.unrealengine.com/t/the-current-value-of-the-enum-is-invaild/361344)

<div class="topic-metadata">

**Author:** [@MrDiggers](https://forums.unrealengine.com/u/MrDiggers)\
**Replies:** 1\
**Last updated:** [June 20, 2016, 2:21am UTC](https://forums.unrealengine.com/t/the-current-value-of-the-enum-is-invaild/361344 "2016-06-20T02:21:50Z")

</div>

As the following picture shows, I am getting this weird error. I have no idea what is causing it. What is worse, when I click on the error for it to take me to where the problem is, it just returns nothing. …

---

## [Data Table not saving](https://forums.unrealengine.com/t/data-table-not-saving/353319)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_6b6f9cdd](https://forums.unrealengine.com/u/anonymous_user_6b6f9cdd)\
**Replies:** 19\
**Last updated:** [April 22, 2016, 6:30pm UTC](https://forums.unrealengine.com/t/data-table-not-saving/353319 "2016-04-22T18:30:59Z")

</div>

Hello, My Data table does not save changes when changing an Enum, It will save other entries like bools or ints or text fields, but won;t save the enum changes. My specific use is a Data Table of Items, each item as a …

---

## [Switching On Enums With Bytes](https://forums.unrealengine.com/t/switching-on-enums-with-bytes/335836)

<div class="topic-metadata">

**Author:** [@Kuroodo\_Ditory](https://forums.unrealengine.com/u/Kuroodo_Ditory)\
**Replies:** 2\
**Last updated:** [October 21, 2015, 8:55pm UTC](https://forums.unrealengine.com/t/switching-on-enums-with-bytes/335836 "2015-10-21T20:55:36Z")

</div>

I finally figured out an issue I was having for an hour… Basically I have an enum called Pickup\_Enum. I am trying to get a random entry from that enum by getting a random byte between 0 and the total amount of entries i…

---

## [Set an array in 4.9 (and switch)](https://forums.unrealengine.com/t/set-an-array-in-4-9-and-switch/331858)

<div class="topic-metadata">

**Author:** [@majuss](https://forums.unrealengine.com/u/majuss)\
**Replies:** 0\
**Last updated:** [September 11, 2015, 1:35pm UTC](https://forums.unrealengine.com/t/set-an-array-in-4-9-and-switch/331858 "2015-09-11T13:35:42Z")

</div>

I watched a youtube tutorial and somebody is setting arrays with an easy approach (september 2014) and a switch. He uses the switch to set different screen “modes” (main menu, pause, options…). But the nodes to set array…

---

## [Structs and Enumerations broken (blueprint)](https://forums.unrealengine.com/t/structs-and-enumerations-broken-blueprint/315477)

<div class="topic-metadata">

**Author:** [@a\_najafi](https://forums.unrealengine.com/u/a_najafi)\
**Replies:** 3\
**Last updated:** [May 12, 2015, 7:14pm UTC](https://forums.unrealengine.com/t/structs-and-enumerations-broken-blueprint/315477 "2015-05-12T19:14:39Z")

</div>

The problem with structs is (and has been) non related to engine version it seems such an important aspect has been left broken several things related to structs don’t work and some will just crash the editor broken : s…

---

## [Problem with switch on enumeration](https://forums.unrealengine.com/t/problem-with-switch-on-enumeration/301572)

<div class="topic-metadata">

**Author:** [@GameEon\_Infotech\_Pvt.Ltd\_1](https://forums.unrealengine.com/u/GameEon_Infotech_Pvt.Ltd_1)\
**Replies:** 4\
**Last updated:** [December 19, 2014, 4:32pm UTC](https://forums.unrealengine.com/t/problem-with-switch-on-enumeration/301572 "2014-12-19T16:32:48Z")

</div>

So I am working a an AI bot with two states, Search and Attack. I’m using a sphere component to detect enemies within a certain radius. I have attached my blueprints, the issue here is that it shows the log message on ov…

---

## [Behavior tree decorator not using correct enum names](https://forums.unrealengine.com/t/behavior-tree-decorator-not-using-correct-enum-names/291553)

<div class="topic-metadata">

**Author:** [@AmyH](https://forums.unrealengine.com/u/AmyH)\
**Replies:** 4\
**Last updated:** [November 24, 2014, 1:58am UTC](https://forums.unrealengine.com/t/behavior-tree-decorator-not-using-correct-enum-names/291553 "2014-11-24T01:58:36Z")

</div>

When I add a blackboard decorator and set it to check if an enumerator is equal to a value - the correct name is shown in the dropdown list of key values but it does not display the name in the behavior tree, only the de…

---

## [Using make literal enum in BTTask\_BlueprintBase causes problems](https://forums.unrealengine.com/t/using-make-literal-enum-in-bttask-blueprintbase-causes-problems/292216)

<div class="topic-metadata">

**Author:** [@AmyH](https://forums.unrealengine.com/u/AmyH)\
**Replies:** 6\
**Last updated:** [October 13, 2014, 11:11pm UTC](https://forums.unrealengine.com/t/using-make-literal-enum-in-bttask-blueprintbase-causes-problems/292216 "2014-10-13T23:11:36Z")

</div>

I created an enum and used make literal enum to use it in my BTTask\_BlueprintBase. This caused blueprint to have to be recompiled everytime editor was opened and also caused cooking to fail in 4.4. Removing this entir…

---

## [Why is my Blueprint causing the Editor to freeze and crash?](https://forums.unrealengine.com/t/why-is-my-blueprint-causing-the-editor-to-freeze-and-crash/291115)

<div class="topic-metadata">

**Author:** [@MC\_Stryker](https://forums.unrealengine.com/u/MC_Stryker)\
**Replies:** 6\
**Last updated:** [August 19, 2014, 3:37pm UTC](https://forums.unrealengine.com/t/why-is-my-blueprint-causing-the-editor-to-freeze-and-crash/291115 "2014-08-19T15:37:16Z")

</div>

So I have a Blueprint that had a variable that stored the current state as an int. I have a level open right now that has this Blueprint located in it. I created an enumeration to better represent the different states. O…

---

## [What could be causing my Custom Enum to crash the game?](https://forums.unrealengine.com/t/what-could-be-causing-my-custom-enum-to-crash-the-game/285011)

<div class="topic-metadata">

**Author:** [@KGYTS\_1](https://forums.unrealengine.com/u/KGYTS_1)\
**Replies:** 7\
**Last updated:** [June 5, 2014, 7:58am UTC](https://forums.unrealengine.com/t/what-could-be-causing-my-custom-enum-to-crash-the-game/285011 "2014-06-05T07:58:17Z")

</div>

Hello, I’ve recently jumped from UDK and Unrealscript to UE4 and C++ so I feel that this is quite an obvious issue and it’s just my unfamiliarity with C++ that’s the problem, but I’ve been stuck on this for several hours…
