# Can someone explain how to use Tree View in UE5?

**URL:** <https://forums.unrealengine.com/t/can-someone-explain-how-to-use-tree-view-in-ue5/1614524>\
**Category:** UI\
**Tags:** listview, unreal-engine, UE5, UMG\
**Created:** [January 14, 2024, 5:28pm UTC](https://forums.unrealengine.com/t/can-someone-explain-how-to-use-tree-view-in-ue5/1614524 "2024-01-14T17:28:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViggyNash](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ViggyNash](https://forums.unrealengine.com/u/ViggyNash)\
**Post date:** [January 14, 2024, 5:28pm UTC](https://forums.unrealengine.com/t/can-someone-explain-how-to-use-tree-view-in-ue5/1614524/1 "2024-01-14T17:28:41Z")

</div>

I can’t seem to find any documentation or tutorials on how to use Tree View. I’ve found some UE4 tutorials on Tree View, but the widget seems to have been refactored in UE5 and I can’t find any equivalent events. The widget doesn’t seem to have been deprecated far as I can find.

I could maybe use List View to create similar functionality, but I’d like to understand how Tree View works.

---

<div class="post-metadata">

**Author:** ![Leomerya12](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/leomerya12/32/926321_2.png) [@Leomerya12](https://forums.unrealengine.com/u/Leomerya12)\
**Post date:** [January 14, 2024, 11:32pm UTC](https://forums.unrealengine.com/t/can-someone-explain-how-to-use-tree-view-in-ue5/1614524/2 "2024-01-14T23:32:09Z")

</div>

> [@ViggyNash](#):
>
> Tree View

Are you sure it hasn’t been deprecated or renamed?

---

<div class="post-metadata">

**Author:** ![Supremative](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/supremative/32/906564_2.png) [@Supremative](https://forums.unrealengine.com/u/Supremative)\
**Post date:** [January 15, 2024, 6:07am UTC](https://forums.unrealengine.com/t/can-someone-explain-how-to-use-tree-view-in-ue5/1614524/3 "2024-01-15T06:07:56Z")

</div>

Look at this:

> [@Listview - getting started in BP](https://forums.unrealengine.com/t/listview-getting-started-in-bp/123626/2):
>
> [Reserved for treeview and Tileview] The treeview and gridview are very similar to listview. Note! The function “is List item Expanded” crashes the editor. 1. Treeview - Getting Started You setup a treeview the same way as a listview. The point of a treeview is to have Items be “children” of other Items, like a tree! You add children to an item in the function “On BP on Get Item Children 0”. This is a binding you find on the treeview events in the designer graph. Once that binding is crea…

---

<div class="post-metadata">

**Author:** ![ViggyNash](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ViggyNash](https://forums.unrealengine.com/u/ViggyNash)\
**Post date:** [January 16, 2024, 12:50am UTC](https://forums.unrealengine.com/t/can-someone-explain-how-to-use-tree-view-in-ue5/1614524/4 "2024-01-16T00:50:40Z")

</div>

> [@Supremative](#):
>
> Look at this:

This doesn’t help me. As I mentioned, the functionality has been refactored in UE5 and many of those interface functions and events don’t exist anymore.

> [@Leomerya12](#):
>
> Are you sure it hasn’t been deprecated or renamed?

I’ve found blueprint api references in the UE5 docs that aren’t marked as deprecated, so I’m leaning yes. But this hasn’t been the first time their documentation was wrong about something.

---

<div class="post-metadata">

**Author:** ![LenSolla](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LenSolla](https://forums.unrealengine.com/u/LenSolla)\
**Post date:** [March 15, 2024, 3:01pm UTC](https://forums.unrealengine.com/t/can-someone-explain-how-to-use-tree-view-in-ue5/1614524/5 "2024-03-15T15:01:24Z")

</div>

On the same boat here. Will be following this in case anyone can provide some insight!

---

<div class="post-metadata">

**Author:** ![LenSolla](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LenSolla](https://forums.unrealengine.com/u/LenSolla)\
**Post date:** [April 16, 2024, 9:58am UTC](https://forums.unrealengine.com/t/can-someone-explain-how-to-use-tree-view-in-ue5/1614524/6 "2024-04-16T09:58:56Z")

</div>

I ended up figuring a way to use them in the end! Here is a basic tutorial I wrote with my findings:

> [@UE5 - Basic tree view tutorial](https://forums.unrealengine.com/t/ue5-basic-tree-view-tutorial/1806184):
>
> There’s a huge lack of tutorials and posts dealing with the Tree View container in UE5, so I set out on a mission to learn how to use them myself. This has been put together using my knowledge of Lists and some tutorials I found for Tree Views in UE4. I made this as beginner friendly as I could, but I am open to learning smile If you have any questions or find any better way to achieve the same results, please let me know. I will be showing you how to make a simple interactive inventory list …

---

<div class="post-metadata">

**Author:** ![mmcmain](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mmcmain](https://forums.unrealengine.com/u/mmcmain)\
**Post date:** [April 16, 2024, 1:42pm UTC](https://forums.unrealengine.com/t/can-someone-explain-how-to-use-tree-view-in-ue5/1614524/7 "2024-04-16T13:42:48Z")

</div>

I have used and worked with both tree view and list view extensively and I can tell you that, in my opinion, Tree View is not worth the effort.

Here are several limitations the Tree View suffers from that List Views do not:

You have to manage all navigation for a tree view. Do you want navigation like you get in Windows Explorer? That is much more complicated than List View as there is no built-in navigation. Here is an example of my Next routine. Not the end of the world, but it has finicky complexity - meaning when you are developing yours expect to struggle getting the logic correct. Each of these pure methods are somewhat complex as well, but I will get to that.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/5/dd5c7737f963afd47a83093317b80750a7eb5bd4.png)

Next, you know how you need to wrap your ListView candidate in an object? Well in my game most everything already derives from UObject. This makes them perfect candidates for ListView directly. But not for Tree. You see, Tree objects need to understand their relationship hierarchy as in a very different way. If you are like me, you already have your objects related to each other hierarchically so you might think “Perfect, my stuff will naturally just work for a tree!” However like me, that might not be the case. You see your objects might be structured hierarchically, but do they have tree navigation in mind? Remember that complex navigation scheme? You will need to encode that in every hierarchy over and over, unless you make a TreeObject type of wrapper (which is what I did). Even though I am proud of the work for my Tree wrapper system, I find it very cumbersome to use and get confused every time I implement it.

So after spending several long days over the past two months coding different aspects of this for similar needs in my game I have come to the following conclusion:

1. Most “Here is how you use a tree” are simple 1, 2, 3 nested lists that do not even closely represent real-world situations making them virtually useless when you implement one yourself in a game. If you need a simple 1,2,3 nested tree then you will not find them difficult to use.

2. Once you go through the pains of giving birth to your tree, it works very well if the hierarchical data in it is not volatile. Like anything complex, once you solve it then it will work forever.

3. If you have serious tree depth or the relationships change frequently, I recommend using a nest List View approach instead. It is super easy to use and since you are only rendering one level at a time volatility is never an issue.

If you still want to use a tree and would like more specific help on implementing navigation I would be happy to provide more detailed BP examples that fit a more real-world approach and not the simple 1,2,3.

* * *

Update: Looking at the @LenSolla post above, his tutorial is amazing. Highly detailed and a real-world example that goes into great detail. Really nice work.

* * *

Additional Update: It turns out that my object hierarchy re-stitching issue was a bug on my part. When an object hierarchy changed I was failing to clear the child reference from its old parent resulting in bad navigation references. After fixing that I find that and requesting a refresh on the tree to account for the changes it works as expected.
