# TreeView.GetNewSelectionFunction

> A callback which determines how TreeView handles selection changes in response to keys and mouse clicks.

## Definition

* **Type:** Delegate
* **Namespace:** [UnityEditor.IMGUI.Controls](/engine/6000.5/script-reference/unityeditor/imgui/controls.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public delegate List<int> TreeView.GetNewSelectionFunction(TreeViewItem clickedItem, bool keepMultiSelection, bool useActionKeyAsShift)
```

## Remarks

Additional Resources: [TreeView.getNewSelectionOverride](/engine/6000.5/script-reference/unityeditor/imgui/controls/treeview/getnewselectionoverride.md).
