# How do you set Enum Slots == Widget Blueprints

**URL:** <https://forums.unrealengine.com/t/how-do-you-set-enum-slots-widget-blueprints/458235>\
**Category:** UI\
**Tags:** enumeration, unreal-engine, Widget, UE4, Blueprint, question, UMG\
**Created:** [November 10, 2019, 5:51am UTC](https://forums.unrealengine.com/t/how-do-you-set-enum-slots-widget-blueprints/458235 "2019-11-10T05:51:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haturn\_Phoenix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Haturn\_Phoenix](https://forums.unrealengine.com/u/Haturn_Phoenix)\
**Post date:** [November 10, 2019, 5:51am UTC](https://forums.unrealengine.com/t/how-do-you-set-enum-slots-widget-blueprints/458235/1 "2019-11-10T05:51:09Z")

</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 Enum Armor Slot Type that stores head, torso, legs, etc). I wanted to know how could I set it up so that the function input(Widget blueprint) to be == Enums

---

<div class="post-metadata">

**Author:** ![Aeriz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aeriz/32/1130130_2.png) [@Aeriz](https://forums.unrealengine.com/u/Aeriz)\
**Post date:** [November 10, 2019, 8:02am UTC](https://forums.unrealengine.com/t/how-do-you-set-enum-slots-widget-blueprints/458235/2 "2019-11-10T08:02:30Z")

</div>

What do you mean by widget equal to the Enum? what are you trying to accomplish exactly?

---

<div class="post-metadata">

**Author:** ![DDemon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DDemon](https://forums.unrealengine.com/u/DDemon)\
**Post date:** [November 10, 2019, 1:02pm UTC](https://forums.unrealengine.com/t/how-do-you-set-enum-slots-widget-blueprints/458235/3 "2019-11-10T13:02:50Z")

</div>

If I understood you correctly, just add in Emum to your slot and item, and when you try to equip an item just do a check of equals between the enums, if true equip if not cancel.

---

<div class="post-metadata">

**Author:** ![Haturn\_Phoenix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Haturn\_Phoenix](https://forums.unrealengine.com/u/Haturn_Phoenix)\
**Post date:** [November 10, 2019, 7:12pm UTC](https://forums.unrealengine.com/t/how-do-you-set-enum-slots-widget-blueprints/458235/4 "2019-11-10T19:12:05Z")

</div>

Like I have 8 UI\_Equip Slot widgets inside my character sheet. I want to make it so that when the item is equipped it goes to the right slot. I have renamed my UI\_Equip Slots widget to head, torso, legs slot, etc. in my item info Structure I have an Enum called Armor Slot and I select which armour slot it goes to. I have a function where I switch on Enum Armor Slot, which then sets the head slot == to UI\_Equip Slot blueprint which I renamed to head slot. Am I looking at this in a wrong way? is there a better way of doing this.
