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.
Create a new C++ basic project, without content, called ‘DebugBeginPlay’
Extract the given zip in the folder
regenerate, compile and run
Open the level ‘NewMap’
Run, and see that the button and the slot are working (using the workaround said before).
Open ‘MainHUD’, go to the Graph.
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’.
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.
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.