# Is there a detailed tutorial of ListView?

**URL:** <https://forums.unrealengine.com/t/is-there-a-detailed-tutorial-of-listview/1174243>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [May 22, 2023, 4:28am UTC](https://forums.unrealengine.com/t/is-there-a-detailed-tutorial-of-listview/1174243 "2023-05-22T04:28:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![potatosir6017](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@potatosir6017](https://forums.unrealengine.com/u/potatosir6017)\
**Post date:** [May 22, 2023, 4:28am UTC](https://forums.unrealengine.com/t/is-there-a-detailed-tutorial-of-listview/1174243/1 "2023-05-22T04:28:53Z")

</div>

Hi, I am a newbie and want to make a UI that player can select mesh on the list, then they can place the mesh any where they want during playing the game.

I check that there are many ways to make a inventory UI, something like actor base inventory, component base inventory, data base inventory and I don’t know which is which and what differences they have, then I check inside user widget and I find out tileview might be something enough for me.

The problem for me right now is that I don’t know how to use tileview( listview ), there are few videos about listview on youtube, I watched all of them but they are not really explaining how listview work. They all said we need structure, A UObject for holding data, a listview widget, a entry widget, they show case how to make listview showing buttons with text of 0 to 40 but I still don’t understand how to make my tileview import and show meshes, it would be useful if someone can provide a detailed listview tutorial to me, I would also love to hear someone explain to me it here, that way I can even ask question that I don’t understand.

BTW, I am now thinking of manually making a array contain the meshes player selected, and try to import that array into tileview later on.  
But I really want to know if there is a way to let UE auto import these meshes into array with path or something, I checked online “get assets by path” might be workable? But I also saw people said that you can’t do that with blueprint, but only CPP.

---

<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:** [May 22, 2023, 6:10am UTC](https://forums.unrealengine.com/t/is-there-a-detailed-tutorial-of-listview/1174243/2 "2023-05-22T06:10:08Z")

</div>

> [@Listview - getting started in BP](https://forums.unrealengine.com/t/listview-getting-started-in-bp/123626):
>
> I am creating this guide since I had trouble grasping the listview at first, seeing many have the same struggle and there not being any good information about them in a blueprint context. The listview should be pretty straight forward to use once you got the basic grasp of it. Note!:If a widget is generated for one instance more than once, the engine will crash. So any instance should only be in the listview once. Note! If the node “Is List Item Selected”, part of the entrywidget class, is us…

---

<div class="post-metadata">

**Author:** ![potatosir6017](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@potatosir6017](https://forums.unrealengine.com/u/potatosir6017)\
**Post date:** [May 22, 2023, 7:13am UTC](https://forums.unrealengine.com/t/is-there-a-detailed-tutorial-of-listview/1174243/3 "2023-05-22T07:13:08Z")

</div>

Hi, I noticed this thread before, but it seems very complicated and different to other tutorial from youtube, there are nodes that I can’t create and follow the tutorial, but yeah I can rewatch the tutorial and see if I can understand that thing.

I try to follow the tutorial but don’t understand what is Add Item and Event On List Item Object Set for, I don’t why are they separated and I don’t know what to imple in Event On List Item Object Set.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/7/1f7864134739e85344cdc5f7ddd334cb443faa15.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/d/a0dc5e2925e741fc1f7f11d8e0f9bd1d4df2112c.png)

the program won’t work.

---

<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:** [May 22, 2023, 7:16am UTC](https://forums.unrealengine.com/t/is-there-a-detailed-tutorial-of-listview/1174243/4 "2023-05-22T07:16:44Z")

</div>

**You can implement your feature with the following steps:**

1. Create an Entry widget for your TileView:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/f/c1fc993814f57cd638e374a226c7cc1b131121d1.png)

2. Add list view interface to it:  

3. Add text to your entry widget to display mesh name:  

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/2/b8209e307beb1ee2e676ecb9d2a0d899e98f4730.png)

1. Set tour entry to the Tileview:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/d/9/5d98a2f2bf2850b2f0b5c9fb78236e43eb8c2995.png)

2. In your main widget, make a function to get list of meshes:  

3. Set meshes to the TileView:  

Result:

TileView:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/e/2/5e2b764af7a9dd9423efb0a511bb13a44f3f0717.jpeg)

Listview:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/9/6a909d3338597525be0e928d7ee5593e30d9dd70.jpeg)

You should prepare thumbnails for your meshes or make some tool to create them runtime.

**Drag and Drop:**

1. Detect drag:  

2. On Drag Detected:  

3. Drop:  

Result:  
 ![SpawnMesh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/c/52c26c89e3e38d0a9be9a5992ce1939a266edbbc.gif)

I’ve made a runtime scene outliner and content with treeview and tileview on blueprints:

> **[Quiet Runtime Editor in Blueprints - UE Marketplace](https://www.unrealengine.com/marketplace/en-US/product/quiet-runtime-editor)**
>
> Quiet Runtime Editor is designed to build and edit 3D scenes runtime. Version 2.1

---

<div class="post-metadata">

**Author:** ![potatosir6017](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@potatosir6017](https://forums.unrealengine.com/u/potatosir6017)\
**Post date:** [May 23, 2023, 1:38am UTC](https://forums.unrealengine.com/t/is-there-a-detailed-tutorial-of-listview/1174243/5 "2023-05-23T01:38:31Z")

</div>

Hi, @Supremative, your reply is super informative, but I am thinking could we use “get asset by path” to get assets inside a folder?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/0/d/f0d8e5acdc0783ba8d1a01bccee7f78dd7e90666.jpeg)

In my case, I download the free quixel megascans package from unreal store, I import it into my project, can we get all these meshes in this folder into the array with blueprint?

In current drag&drop code, the meshes will float at the sky and the distance is kinda hard to controll, is there a way to place them to the ground?

---

<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:** [May 23, 2023, 6:25am UTC](https://forums.unrealengine.com/t/is-there-a-detailed-tutorial-of-listview/1174243/6 "2023-05-23T06:25:43Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/f/56f22c5adb3db6794860457b0be717fe030430fc.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/8/fb86c6454b7ded3e3f2b111d1eac014392518077.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/5/f/45fd00c045c3055f4fc7e6092bb06f6c731ce8b1.png)

To spawn on a surface, use Linetrace.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/5/e15eeb783b309bae8c6e8bb079e4c8f69f94fdaa.png)

---

<div class="post-metadata">

**Author:** ![potatosir6017](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@potatosir6017](https://forums.unrealengine.com/u/potatosir6017)\
**Post date:** [May 24, 2023, 6:57am UTC](https://forums.unrealengine.com/t/is-there-a-detailed-tutorial-of-listview/1174243/7 "2023-05-24T06:57:04Z")

</div>

Hi, sorry to bother you again, but I really don’t understand how to use linetrace to get the function work correctly.

I try to follow tutorial in the internet, I tried location, impact point but somehow the hit result seems to always stay at (0,0,0) of the map.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/f/4ef3805267685db27324161e067b0a146888b4c0.png)

---

<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:** [May 24, 2023, 7:53am UTC](https://forums.unrealengine.com/t/is-there-a-detailed-tutorial-of-listview/1174243/8 "2023-05-24T07:53:09Z")

</div>

Use GetMousePositionOnViewport:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/8/7d8d2ae3534c5e6ed4005981066c19cd6870dff9.png)

ConvertMouseLocationToWorldSpace doesn’t work on dragging widgets.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/d/b1d86a734515232659ca275a78ac02284a6b9d5d.png)

---

<div class="post-metadata">

**Author:** ![potatosir6017](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@potatosir6017](https://forums.unrealengine.com/u/potatosir6017)\
**Post date:** [May 24, 2023, 8:07am UTC](https://forums.unrealengine.com/t/is-there-a-detailed-tutorial-of-listview/1174243/9 "2023-05-24T08:07:12Z")

</div>

@Supremative REALLY REALLY THANK YOU!

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/b/b/8bb4253a23703f304e0875bdc8097f2d0eb7bb6c.png)

I also add the get viewport scale from your last code and it works as a charm!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [June 23, 2023, 8:07am UTC](https://forums.unrealengine.com/t/is-there-a-detailed-tutorial-of-listview/1174243/10 "2023-06-23T08:07:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
