# Infinite Loop in my character creator

**URL:** <https://forums.unrealengine.com/t/infinite-loop-in-my-character-creator/488460>\
**Category:** UI\
**Tags:** error, hud, character-creator, infinite-loop, unreal-engine, Blueprint, question\
**Created:** [September 6, 2021, 4:14pm UTC](https://forums.unrealengine.com/t/infinite-loop-in-my-character-creator/488460 "2021-09-06T16:14:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidTveraas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidtveraas/32/1058281_2.png) [@DavidTveraas](https://forums.unrealengine.com/u/DavidTveraas)\
**Post date:** [September 6, 2021, 4:14pm UTC](https://forums.unrealengine.com/t/infinite-loop-in-my-character-creator/488460/1 "2021-09-06T16:14:27Z")

</div>

I followed this tutorial: [Unreal Modular Character Customization System I - YouTube](https://www.youtube.com/watch?v=AM-CzvkYkbs)

My code is not exactly following along with it, but I’m not sure where the infinite loop could be coming from if the author of that tutorial’s did not have this issue.

 ![348095-infinite.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/5/f75bdc9e445d41efdb36412de992b7958334debe.png)

 ![348096-hud.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/6/0f6d2380018359c3a0ac9503c538eccd2f21076f.png)

 ![348097-button.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/a/2/2a2b0e6a37f5c8382947171190291cdb8c1e4627.png)

 ![348098-character.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/a/15af3ca6421a53590b48dfc01134771e3a0fed07.png)

It does not like the Change Hair function in the HUD widget. I put in all the precautions in the tutorial, as far as I know. Is there a better way to make this character creator? Thank you for your help.

---

<div class="post-metadata">

**Author:** ![DavidTveraas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidtveraas/32/1058281_2.png) [@DavidTveraas](https://forums.unrealengine.com/u/DavidTveraas)\
**Post date:** [September 6, 2021, 4:15pm UTC](https://forums.unrealengine.com/t/infinite-loop-in-my-character-creator/488460/2 "2021-09-06T16:15:14Z")

</div>

Error gets triggered when I click the button in the third picture.

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [September 6, 2021, 4:33pm UTC](https://forums.unrealengine.com/t/infinite-loop-in-my-character-creator/488460/3 "2021-09-06T16:33:41Z")

</div>

Hello! Check **HUD\_Character logic** : **Event Change Logic** is calling itself on **Character** variable, which is set as first Character from some set. But if we chech that for this first Character then it is calling this on selfe infinitely long.

---

<div class="post-metadata">

**Author:** ![Jaco001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jaco001](https://forums.unrealengine.com/u/Jaco001)\
**Post date:** [September 6, 2021, 4:41pm UTC](https://forums.unrealengine.com/t/infinite-loop-in-my-character-creator/488460/4 "2021-09-06T16:41:02Z")

</div>

Magic happen on second screen - you send event to the same BP. You should send it to BP\_Modular\_Character…  
Try not to keep same name in BP.

---

<div class="post-metadata">

**Author:** ![DavidTveraas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidtveraas/32/1058281_2.png) [@DavidTveraas](https://forums.unrealengine.com/u/DavidTveraas)\
**Post date:** [September 6, 2021, 4:45pm UTC](https://forums.unrealengine.com/t/infinite-loop-in-my-character-creator/488460/5 "2021-09-06T16:45:35Z")

</div>

What do you mean by “send”? When I call Event Change Hair I should do something BP\_Modular\_Character?

---

<div class="post-metadata">

**Author:** ![DavidTveraas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidtveraas/32/1058281_2.png) [@DavidTveraas](https://forums.unrealengine.com/u/DavidTveraas)\
**Post date:** [September 6, 2021, 5:18pm UTC](https://forums.unrealengine.com/t/infinite-loop-in-my-character-creator/488460/6 "2021-09-06T17:18:12Z")

</div>

So the character is being checked infinitely? Do I need a do once somewhere?

---

<div class="post-metadata">

**Author:** ![Jaco001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jaco001](https://forums.unrealengine.com/u/Jaco001)\
**Post date:** [September 6, 2021, 5:44pm UTC](https://forums.unrealengine.com/t/infinite-loop-in-my-character-creator/488460/7 "2021-09-06T17:44:15Z")

</div>

You have same interface at HUD and Player BP (in one package). This lead to called event be handled twice. Second one is calling again this event (loop).
