This version of Unity is unsupported.

TreeView.destroyItem

public Action<VisualElement> destroyItem;

Description

Callback invoked when a VisualElement created via makeItem is no longer needed and will be destroyed.

The method called by this callback receives the VisualElement that will be destroyed from the pool.