# String array Inventory UI and removal setup

**URL:** <https://forums.unrealengine.com/t/string-array-inventory-ui-and-removal-setup/2833783>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [September 24, 2026, 1:54am UTC](https://forums.unrealengine.com/t/string-array-inventory-ui-and-removal-setup/2833783 "2026-09-24T01:54:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MARZ64331](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MARZ64331](https://forums.unrealengine.com/u/MARZ64331)\
**Post date:** [September 24, 2026, 1:54am UTC](https://forums.unrealengine.com/t/string-array-inventory-ui-and-removal-setup/2833783/1 "2026-09-24T01:54:23Z")

</div>

Hello I followed along [Gorka’s UI](https://www.youtube.com/watch?v=khjUY5To7qI&t=1249s) tutorial only as I was looking for a tutorial like this as it goes well with my indie puzzle game and my removal setup works but here’s the problem: if I have four keys green, blue, red, and white. It will remove it if I go to the green door, then the blue door, then red then white it will only remove in order from first to last. It won’t remove any other way.

 ![Screenshot 2026-09-23 214933](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/c/42c23029c1ba9a978bf65c0ca77e03b8037d4b7f.png)  
 ![Screenshot 2026-09-23 214940](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/5/a85f0fefb28260b714c893183b790ca7246fd701.png)  
 ![Screenshot 2026-09-23 214954](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/a/03a2a65dfc69dc2329e4e0e26fffe2414748d1a3.png)  
 ![Screenshot 2026-09-23 214958](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/e/3fe9d9fd3d7aeffab06c7016950412e37768613c.png)

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [September 24, 2026, 4:20am UTC](https://forums.unrealengine.com/t/string-array-inventory-ui-and-removal-setup/2833783/2 "2026-09-24T04:20:25Z")

</div>

That while loop is probably supposed to be an If branch. And your widgets should save/return the string itself

---

<div class="post-metadata">

**Author:** ![MARZ64331](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MARZ64331](https://forums.unrealengine.com/u/MARZ64331)\
**Post date:** [September 24, 2026, 4:29am UTC](https://forums.unrealengine.com/t/string-array-inventory-ui-and-removal-setup/2833783/3 "2026-09-24T04:29:46Z")

</div>

I tried it with the branch itself but it does the same thing

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [September 24, 2026, 4:34am UTC](https://forums.unrealengine.com/t/string-array-inventory-ui-and-removal-setup/2833783/4 "2026-09-24T04:34:19Z")

</div>

Bit hard to read the small pics but also make sure you remove from the array before updating the widgets

---

<div class="post-metadata">

**Author:** ![MARZ64331](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MARZ64331](https://forums.unrealengine.com/u/MARZ64331)\
**Post date:** [September 24, 2026, 4:35am UTC](https://forums.unrealengine.com/t/string-array-inventory-ui-and-removal-setup/2833783/5 "2026-09-24T04:35:23Z")

</div>

i managed to fix it, my query system was messing it up i removed it and it works fine now
