destroyItem
Callback invoked when a VisualElement created via ListView.makeItem is no longer needed and will be destroyed.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
[CreateProperty]public Action<VisualElement> destroyItem { get; set; }
Remarks
The method called by this callback receives the VisualElement that will be destroyed from the pool.