Dynamically adding to Widget Switcher

Hello everyone,

I seem to be having an issue dynamically adding content to a UWidgetSwitcher. I have a defined UTileView that I’m programmatically adding to the widget switcher on a particular event, with the AddChild function, but it when I change the switcher’s index, to the new child, nothing renders. Has anyone else encountered this issue or has a work around for this? Is this a limitation of widget switchers?

Can you get the TileView to work outside the switcher?

You’re definitely onto something there. It doesn’t look like the TileView itself is actually being rendered. I’m attempting to programmatically create the widget at runtime with:

UTileView* TileWidget = WidgetTree->ConstructWidget(UTileView::StaticClass());

I’m then populating the widget with items and then assigning them. If I isolate just the TileView, it renders “No EntryWidgetClass specified on this list” in the UI element location. I know that’s a protected variable and there isn’t an exposed method on UListViewBase to specifically set it in CPP. Would you perhaps know a workaround for this?