# Using FGameplayTagQuery in a blueprint resets

**URL:** <https://forums.unrealengine.com/t/using-fgameplaytagquery-in-a-blueprint-resets/259073>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [November 3, 2021, 11:07am UTC](https://forums.unrealengine.com/t/using-fgameplaytagquery-in-a-blueprint-resets/259073 "2021-11-03T11:07:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ismailLeRAT](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ismaillerat/32/88708_2.png) [@ismailLeRAT](https://forums.unrealengine.com/u/ismailLeRAT)\
**Post date:** [November 3, 2021, 11:07am UTC](https://forums.unrealengine.com/t/using-fgameplaytagquery-in-a-blueprint-resets/259073/1 "2021-11-03T11:07:56Z")

</div>

Hello so i am using the FGameplayTagQuery as a UPROPERTY() on the ActorComponent “Grabber” which has a pretty basic setup

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/b/8bd66ede1300d188599a38f903d356097f250c0f.jpeg)

however when i set the field (click save and compile, but i DO NOT close the blueprint window)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/5/25843a02e858320ae147b6ca5cfd98f419868af7.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/4/b4c80627ed96acdebc039e1c0727ba75e78f92ed.png)

and i run my program everything runs a expected

However if i close the editor window while everything has been saved and compiled  
I lose my query  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/7/b7414d4423f67efe970773b0f436c98dbc9fb139.png)

Does anyone know how i can fix that?

---

<div class="post-metadata">

**Author:** ![TheKaosSpectrum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheKaosSpectrum](https://forums.unrealengine.com/u/TheKaosSpectrum)\
**Post date:** [November 3, 2021, 7:26pm UTC](https://forums.unrealengine.com/t/using-fgameplaytagquery-in-a-blueprint-resets/259073/2 "2021-11-03T19:26:55Z")

</div>

This maybe dumb, and i have not experienced this issue, you do click the Save and close button up the top right?

---

<div class="post-metadata">

**Author:** ![ismailLeRAT](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ismaillerat/32/88708_2.png) [@ismailLeRAT](https://forums.unrealengine.com/u/ismailLeRAT)\
**Post date:** [November 8, 2021, 11:34pm UTC](https://forums.unrealengine.com/t/using-fgameplaytagquery-in-a-blueprint-resets/259073/3 "2021-11-08T23:34:00Z")

</div>

Yea i did, i found the solution for this problem, seems there was an issue with hot reload, i had to delete the component and re-add it, i found the solutiion here:

[[UPROPERTY value keeps resetting on every compile - #16 by arhiDavid](https://forums.unrealengine.com/t/uproperty-value-keeps-resetting-on-every-compile/116576/16#post1651757)](o [UPROPERTY value keeps resetting on every compile - #16 by arhiDavid](https://forums.unrealengine.com/t/uproperty-value-keeps-resetting-on-every-compile/116576/16#post1651757))

PS: how do i mark this as solved?

---

<div class="post-metadata">

**Author:** ![TheKaosSpectrum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheKaosSpectrum](https://forums.unrealengine.com/u/TheKaosSpectrum)\
**Post date:** [November 8, 2021, 11:53pm UTC](https://forums.unrealengine.com/t/using-fgameplaytagquery-in-a-blueprint-resets/259073/4 "2021-11-08T23:53:30Z")

</div>

You can not mark it solved, but HotReload is really bad, and i advise people to not use it. [http://www.hotreloadsucks.com](http://www.hotreloadsucks.com) 🙂
