# Switch Named Slot Content  (UMG)

**URL:** <https://forums.unrealengine.com/t/switch-named-slot-content-umg/332307>\
**Category:** UI\
**Tags:** unreal-engine, question, UMG\
**Created:** [September 15, 2015, 7:16pm UTC](https://forums.unrealengine.com/t/switch-named-slot-content-umg/332307 "2015-09-15T19:16:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![zamy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zamy](https://forums.unrealengine.com/u/zamy)\
**Post date:** [September 15, 2015, 7:16pm UTC](https://forums.unrealengine.com/t/switch-named-slot-content-umg/332307/1 "2015-09-15T19:16:58Z")

</div>

Hello guys,  
i’m not sure if this is a bug, but anyway:

Using Named slot, and setting its content runtime:

At the first call of “SetContentForSlot”, it’s all perfect: the new content is set up and displayed.

Howerver, on the successive calls:

**Expected result:**

At every new call, update the content accordingly.

**Actual result:**

The call doesn’t change the content. I have to call it 2 times to obtain the change, the first one with the content set as NULL, and the second with the intended new content.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [September 15, 2015, 7:34pm UTC](https://forums.unrealengine.com/t/switch-named-slot-content-umg/332307/2 "2015-09-15T19:34:43Z")

</div>

Hello zamy,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

1. Can you reproduce this issue in a clean project?
2. If so, could you provide a detailed list of steps to reproduce this issue on our end?
3. Could you provide screen shots of any blueprints that may be involved with this issue?

---

<div class="post-metadata">

**Author:** ![zamy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zamy](https://forums.unrealengine.com/u/zamy)\
**Post date:** [September 15, 2015, 9:05pm UTC](https://forums.unrealengine.com/t/switch-named-slot-content-umg/332307/3 "2015-09-15T21:05:00Z")

</div>

If i can reproduce it, i’ll link the source here

---

<div class="post-metadata">

**Author:** ![zamy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zamy](https://forums.unrealengine.com/u/zamy)\
**Post date:** [September 15, 2015, 10:07pm UTC](https://forums.unrealengine.com/t/switch-named-slot-content-umg/332307/4 "2015-09-15T22:07:57Z")

</div>

here we go.  
Instructions:

1. Create a new C++ basic project, without content, called ‘DebugBeginPlay’
2. Extract the given zip in the folder
3. regenerate, compile and run
4. Open the level ‘NewMap’
5. Run, and see that the button and the slot are working (using the workaround said before).
6. Open ‘MainHUD’, go to the Graph.
7. You can see, in the OnClick event of the button, that i commented the 2 blocks where i set the slot to NULL first. Try to exclude them linking the execution directly to the second ‘Set Content for Slot’.
8. Compile and run again. As you should see, the slot content never changes.

Again, i’m not sure if it is a bug, but i would expect it to work without the commented (boxed) nodes.

 ![58784-nodes.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/f/0/df0b24c378a933017fec8c110725d164b69ee079.png)

[Source code][2]

---

<div class="post-metadata">

**Author:** ![zamy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zamy](https://forums.unrealengine.com/u/zamy)\
**Post date:** [September 17, 2015, 12:28pm UTC](https://forums.unrealengine.com/t/switch-named-slot-content-umg/332307/5 "2015-09-17T12:28:45Z")

</div>

Let me know if you have problems with the code 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [September 17, 2015, 8:26pm UTC](https://forums.unrealengine.com/t/switch-named-slot-content-umg/332307/6 "2015-09-17T20:26:54Z")

</div>

Hello zamy,

I was able to reproduce this issue on our end. I have written up a report (UE-21207) and I have submitted it to the developers for further consideration. I will provided updates with any pertinent information as it becomes available. Thank you for you time and information.

I was able to get this working with the following set up. I hope this helps.

 ![59073-setnamedslotashelp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/1/e41a7a1ba976737c2b7412af7daef071435532ca.png)

Make it a great day

---

<div class="post-metadata">

**Author:** ![zamy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zamy](https://forums.unrealengine.com/u/zamy)\
**Post date:** [September 18, 2015, 11:14am UTC](https://forums.unrealengine.com/t/switch-named-slot-content-umg/332307/7 "2015-09-18T11:14:41Z")

</div>

Ok, thanks!
