"No Slate Widget" issue

I am creating a simple UI for the shop. For that I use “TreeView”. After adding a single item to the tree view → 2 items in debug section are appeared for the added item:

image


The one with “No Slate Widget” has correct attributes values that I want to use further. The one without this text has “none” as value. I can’t find out how to fix it and why there are 2 entries for a single item added to the TreeView

UPD: This is how I add item to the TreeView

How many entries are in “Items to Display”? Do you by chance have an empty entry in the array that would spawn a null / empty item?

Hi! There is one entry, I control it manually right now. Double-checked it with debug and watch-value → can confirm there is only one entry in the array

Also the TreeView itself displaying a single item as intended. But in the debug view there are 2 items (like on screenshots in original post)

I’ve run into this issue myself when using a list view, I thought I was meant to construct the widget and add it myself to the list view but that’s actually not the case.

The item you are adding to the list is only an object supposed to contain information for the list view itself to create and setup the widget for you.

You can see an example here on how to use it: UE4 UMG ListView explained to my future self who has already forgotten... - YouTube

2 Likes