# TreeView<TIdentifier>.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.7/script-reference/unityeditor/imgui/controls.md)
* **Assembly:** UnityEditor.CoreModule

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

## Remarks

Additional Resources: [TreeView\<TIdentifier>.getNewSelectionOverride](/engine/6000.7/script-reference/unityeditor/imgui/controls/treeview1/getnewselectionoverride.md).
