# Cost difference between using a Widget Switcher and having multiple separate Widgets?

**URL:** <https://forums.unrealengine.com/t/cost-difference-between-using-a-widget-switcher-and-having-multiple-separate-widgets/391090>\
**Category:** UI\
**Tags:** frontend, unreal-engine, Performance, UI, Widget, question\
**Created:** [April 17, 2017, 12:38am UTC](https://forums.unrealengine.com/t/cost-difference-between-using-a-widget-switcher-and-having-multiple-separate-widgets/391090 "2017-04-17T00:38:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_74f27e54](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_74f27e54](https://forums.unrealengine.com/u/anonymous_user_74f27e54)\
**Post date:** [April 17, 2017, 12:38am UTC](https://forums.unrealengine.com/t/cost-difference-between-using-a-widget-switcher-and-having-multiple-separate-widgets/391090/1 "2017-04-17T00:38:10Z")

</div>

I was wondering if the engine holds all of the Widgets contained within the Widget Switcher in memory during runtime, or if there are performance concerns with using a lot of Widgets within a Switcher.

Would it be less expensive to contain my entire frontend main menu within one Widget containing a Widget Switcher for all sub-menus, or would it be less expensive to simply show/hide or create/destroy the other menus as the user navigates to them?

---

<div class="post-metadata">

**Author:** ![LatFoued](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LatFoued](https://forums.unrealengine.com/u/LatFoued)\
**Post date:** [June 19, 2017, 12:14pm UTC](https://forums.unrealengine.com/t/cost-difference-between-using-a-widget-switcher-and-having-multiple-separate-widgets/391090/2 "2017-06-19T12:14:25Z")

</div>

I would like to give this a bump.

It is something I am currently wondering about, and it would be great to have an answer, so that we can get into the best approach 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f4d93b8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f4d93b8d](https://forums.unrealengine.com/u/anonymous_user_f4d93b8d)\
**Post date:** [October 15, 2017, 6:45pm UTC](https://forums.unrealengine.com/t/cost-difference-between-using-a-widget-switcher-and-having-multiple-separate-widgets/391090/3 "2017-10-15T18:45:00Z")

</div>

**BUMP - I would like an answer to this as well.**

---

<div class="post-metadata">

**Author:** ![anon15805799](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon15805799](https://forums.unrealengine.com/u/anon15805799)\
**Post date:** [March 14, 2019, 4:05pm UTC](https://forums.unrealengine.com/t/cost-difference-between-using-a-widget-switcher-and-having-multiple-separate-widgets/391090/4 "2019-03-14T16:05:07Z")

</div>

thats what i asked by myself. An answer please!

---

<div class="post-metadata">

**Author:** ![Vraelir](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vraelir](https://forums.unrealengine.com/u/Vraelir)\
**Post date:** [July 29, 2019, 1:25pm UTC](https://forums.unrealengine.com/t/cost-difference-between-using-a-widget-switcher-and-having-multiple-separate-widgets/391090/5 "2019-07-29T13:25:13Z")

</div>

Bump - would be handy to know this. I’m trying to choose between widget switchers and menu anchors…

---

<div class="post-metadata">

**Author:** ![KazemAkhgary](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KazemAkhgary](https://forums.unrealengine.com/u/KazemAkhgary)\
**Post date:** [September 19, 2019, 6:54am UTC](https://forums.unrealengine.com/t/cost-difference-between-using-a-widget-switcher-and-having-multiple-separate-widgets/391090/6 "2019-09-19T06:54:32Z")

</div>

Bump!, I just discovered widget switcher as well. good question.

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [September 21, 2019, 10:48pm UTC](https://forums.unrealengine.com/t/cost-difference-between-using-a-widget-switcher-and-having-multiple-separate-widgets/391090/7 "2019-09-21T22:48:55Z")

</div>

I think intention of this widget is switching widgets while keeping there state and keeping it’s code running, since destroying and creating widgets on the go would also destroy the state as well stop code on them. In theory it is faster then just creating and destroying widgets, while ofcorse all widgets would occupation the memory, whatever it’s a big deal depends widgets themselves

I think main use case are tab widgets to keep there integery as they would create single widget together and dont need to reinitiate the widget when you switch tab.

Good analogy would be imagining it as a scroll widget with a snap since same as with scroll widgets are getting hidden when they go outside of the space.
