Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

ListView.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.