# Widget Gets Destroyed After Re Starting Unreal

**URL:** <https://forums.unrealengine.com/t/widget-gets-destroyed-after-re-starting-unreal/382663>\
**Category:** Feedback & Requests\
**Tags:** bug, bugreport, unreal-engine, bug-report, question\
**Created:** [January 22, 2017, 7:57pm UTC](https://forums.unrealengine.com/t/widget-gets-destroyed-after-re-starting-unreal/382663 "2017-01-22T19:57:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_71c55af3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_71c55af3](https://forums.unrealengine.com/u/anonymous_user_71c55af3)\
**Post date:** [January 22, 2017, 7:57pm UTC](https://forums.unrealengine.com/t/widget-gets-destroyed-after-re-starting-unreal/382663/1 "2017-01-22T19:57:28Z")

</div>

Hello Epic

I am not %100 sure if this is a bug, but I have made many tests and this is the result I have come at. I may be wrong though.

First of all, I created a user widget and added that widget to my main menu widget. Everything seemed fine and working at this moment. I thought everything is ok, I closed unreal and pushed my changes to repo.

After a while I came back to check if there are any bugs existing. I pressed my main menu button and options widget should have become visible, but it didn’t. So I assumed it is related to something about my code. I tested many things thinking that this is an issue with my code. But to no avail…

Then I decided to recreate my options and main menu widgets. Did so and again the same problem. Then at this moment I realized the problem. Please check the image below.

 ![123221-ekran+görüntüsü+(113).png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/6/656e325e6911258a8493d00f7ec23fc19d48ed62.png)

Do you see, its inside is empty! This has happened every time I restarted Unreal, hence why I think this is a bug. I would fix it, but when I restart Unreal same thing over again.

Here is my log after fixing and reopening:

> **[Sign in · GitLab](https://invent.kde.org/users/sign_in)**
>
> KDE Invent (Gitlab)

What catched my attention is this line:  
Line 280: [2017.01.22-19.52.48:620][0]LogUObjectGlobals:Warning: Failed to find object ‘Class None.’  
Line

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_71c55af3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_71c55af3](https://forums.unrealengine.com/u/anonymous_user_71c55af3)\
**Post date:** [January 22, 2017, 7:59pm UTC](https://forums.unrealengine.com/t/widget-gets-destroyed-after-re-starting-unreal/382663/2 "2017-01-22T19:59:52Z")

</div>

Here is my options widget when added to main menu:

 ![123222-ekran+görüntüsü+(115).png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/2/fd2ad1707be187602baec381ee75056d46ed97ee.png)

Here is options widget itself:

 ![123223-ekran+görüntüsü+(116).png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/3/f5307aeba26ea4005166dc5ad1184ea273ff2774.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_71c55af3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_71c55af3](https://forums.unrealengine.com/u/anonymous_user_71c55af3)\
**Post date:** [January 23, 2017, 9:35am UTC](https://forums.unrealengine.com/t/widget-gets-destroyed-after-re-starting-unreal/382663/3 "2017-01-23T09:35:25Z")

</div>

Situation Update:

Recreating the widgets from scratch didn’t work. Carrying the project to a new one didn’t work.

My new theory and focus is: The name BP\_MainMenu or BP\_Options has some problem with itself?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_71c55af3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_71c55af3](https://forums.unrealengine.com/u/anonymous_user_71c55af3)\
**Post date:** [January 23, 2017, 11:11am UTC](https://forums.unrealengine.com/t/widget-gets-destroyed-after-re-starting-unreal/382663/4 "2017-01-23T11:11:13Z")

</div>

Situation update:

Got rid of both options and man menu widgets…

Planning on to create two new widgets with very different names.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_71c55af3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_71c55af3](https://forums.unrealengine.com/u/anonymous_user_71c55af3)\
**Post date:** [January 23, 2017, 12:11pm UTC](https://forums.unrealengine.com/t/widget-gets-destroyed-after-re-starting-unreal/382663/5 "2017-01-23T12:11:49Z")

</div>

This here is sort of an answer, but it is not absolute!

First of all, recreating the widget the same name didn’t helped. Carrying them over to a new project didn’t helped. Recreating them by changing appending numbers to them didn’t helped.

What helped was: I deleted these two widgets respectively: Closed unreal and restarted it. Then created two widgets named Zeus(for main menu) and Sceptre(for options). After adding and testing many things, no problems seems to exist yet. I will keep making some more tests to see if I can spot the problem.

For now this method helped me.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_71c55af3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_71c55af3](https://forums.unrealengine.com/u/anonymous_user_71c55af3)\
**Post date:** [January 23, 2017, 2:15pm UTC](https://forums.unrealengine.com/t/widget-gets-destroyed-after-re-starting-unreal/382663/6 "2017-01-23T14:15:02Z")

</div>

**FINAL WORD**

**Dear Epic**

This problem occurs when a user created widget has a named slot and that named slot is child of a scroll box. After you use that user created widget in somewhere else and add a user created child widget to that named slot the problem occurs.

**In my case:**

I had a BP\_MainMenu, BP\_Options, BP\_TabScrollTop. BP\_TabScrollTop had a named slot that was the child of a scroll box(Once this is done, even if you get rid of the scroll box the problem continues).

After this I added BP\_TabScrollTop to BP\_Options and BP\_Options to BP\_MainMenu. When clicked options button, BP\_Options would become visible(everything is fine at this point). Then add **any user created** widget inside the named slot of BP\_TabScrollTop which is added to BP\_Options. Again things will work just fine. But when you close and reopen unreal, BP\_Options widget will no longer be visible, not just that, it will get destroyed only to leave behind its reference(Please look at the pics I provided at first message).

UI.rar

Here I added the specific UI that caused me all this problem. Try it out in a new project to confirm this problem.

As to why this happens, I am not sure, to me it seems like a limitation of named slot added together with a scroll box causes problems.

I hope this will be reported by an epic staff. I am willing to give any information necessery. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_71c55af3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_71c55af3](https://forums.unrealengine.com/u/anonymous_user_71c55af3)\
**Post date:** [January 23, 2017, 2:33pm UTC](https://forums.unrealengine.com/t/widget-gets-destroyed-after-re-starting-unreal/382663/7 "2017-01-23T14:33:32Z")

</div>

Ahem, the one below is the actual final answer. I can’t change the answer. Please refer to below final word.
