# Run time error with Remove from Parent

**URL:** <https://forums.unrealengine.com/t/run-time-error-with-remove-from-parent/453156>\
**Category:** 日本語 (Japanese)\
**Tags:** remove-from-parent, unreal-engine, japanese, UE4, Blueprint, question\
**Created:** [August 1, 2019, 1:43am UTC](https://forums.unrealengine.com/t/run-time-error-with-remove-from-parent/453156 "2019-08-01T01:43:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kinusaya3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kinusaya3](https://forums.unrealengine.com/u/kinusaya3)\
**Post date:** [August 1, 2019, 1:43am UTC](https://forums.unrealengine.com/t/run-time-error-with-remove-from-parent/453156/1 "2019-08-01T01:43:15Z")

</div>

A Player entered a box trigger and pressed the button on the controller to display the widget, and when I got out of the trigger, the widget disappeared. If I try, I get a run time error with Remove from Parent. How should I cope? ? ?

 ![283757-2019-07-31-23h57-15.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/9/c993725a40403c6643954f4df07f94f106e9c979.png)

 ![283756-2019-07-31-22h51-07.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/5/1a5788aae89dd2d1eabadad47ec4f4b09c17b49a.png)

 ![283754-2019-08-01-01h11-14.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/3/d733e2189729f25aec8a63cc88a37e2026118fc1.png)

---

<div class="post-metadata">

**Author:** ![kinusaya3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kinusaya3](https://forums.unrealengine.com/u/kinusaya3)\
**Post date:** [August 1, 2019, 1:28pm UTC](https://forums.unrealengine.com/t/run-time-error-with-remove-from-parent/453156/2 "2019-08-01T13:28:35Z")

</div>

If a player enter one trigger and press a button, other triggers may also react, and unintended widgets may be displayed. I’m designers, it may be a ignorant question for the program, but it would be appreciated if you could reach out to anyone. . .

---

<div class="post-metadata">

**Author:** ![Jezcentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jezcentral](https://forums.unrealengine.com/u/Jezcentral)\
**Post date:** [August 2, 2019, 10:00am UTC](https://forums.unrealengine.com/t/run-time-error-with-remove-from-parent/453156/3 "2019-08-02T10:00:20Z")

</div>

Try putting the branch check before the Remove from Parent, not after. (I’m assuming that this boolean tells the BP if the player is in the area or not.)

This will stop the game trying to remove something when there is nothing to remove.

---

<div class="post-metadata">

**Author:** ![kinusaya3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kinusaya3](https://forums.unrealengine.com/u/kinusaya3)\
**Post date:** [August 7, 2019, 11:22pm UTC](https://forums.unrealengine.com/t/run-time-error-with-remove-from-parent/453156/4 "2019-08-07T23:22:19Z")

</div>

Thank you so much
