Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UVisual
- UWidget
- UListViewBase
- UListView
- UTreeView
- UCommonTreeView
- UEditorUtilityTreeView
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Components/TreeView.h |
| Include | #include "Components/TreeView.h" |
Syntax
class UTreeView : public UListView
Remarks
Similar to ListView, but can display a hierarchical tree of elements. The base items source for the tree identifies the root items, each of which can have n associated child items. There is no hard limit to the nesting - child items can have children and so on
To make a widget usable as an entry in a TreeView, it must inherit from the IUserObjectListEntry interface.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< STreeView< UObject * > > | MyTreeView |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UTreeView
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CollapseAll () |
Collapses all currently expanded items | |
| TSharedRef< TreeViewT< UObject * > > | STreeView construction helper - useful if using a custom STreeView subclass | ||
| void | ExpandAll () |
Expands all items with children | |
| void | SetItemExpansion
(
UObject* Item, |
Attempts to expand/collapse the given item (only relevant if the item has children) | |
| void | SetOnGetItemChildren
(
ObjectT* InUserObject, |
||
| void | SetOnGetItemChildren
(
TSharedRef< ObjectT > InUserObject, |
Overridden from UListViewBase
| Type | Name | Description | |
|---|---|---|---|
| TSharedRef< STableViewBase > | Implement in child classes to construct the actual ListView Slate widget |
Overridden from UVisual
| Type | Name | Description | |
|---|---|---|---|
| void | ReleaseSlateResources
(
bool bReleaseChildren |
Overridden from ITypedUMGListView
| Type | Name | Description | |
|---|---|---|---|
| void | OnGetChildrenInternal
(
UObject* Item, |
TreeViews only. | |
| void | OnItemClickedInternal
(
UObject* Item |
ListView events - implement these instead of binding handlers directly to a list | |
| void | OnItemExpansionChangedInternal
(
UObject* Item, |