# BaseTreeView

> Creates a TreeView with all default properties.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

## BaseTreeView()

Creates a [TreeView](/engine/6000.6/script-reference/unityengine/uielements/treeview.md) with all default properties.

```csharp
public BaseTreeView()
```

### Remarks

Use [BaseTreeView.SetRootItems](/engine/6000.6/script-reference/unityengine/uielements/basetreeview/setrootitems.md) to add content.

## BaseTreeView(int)

Creates a [TreeView](/engine/6000.6/script-reference/unityengine/uielements/treeview.md) with specified factory methods using the fixed height virtualization method.

```csharp
public BaseTreeView(int itemHeight)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The item height to use in FixedHeight virtualization mode.

### Remarks

Use [BaseTreeView.SetRootItems](/engine/6000.6/script-reference/unityengine/uielements/basetreeview/setrootitems.md) to add content.
