ComponentResourceReleaseHandler<T>
The signature of a [ReleaseComponentResources ] method: it receives the released component's own data by reference and frees what that component allocated.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Delegate
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public delegate void ComponentResourceReleaseHandler<T>(ref T component) where T : struct, IVisualElementComponent
Remarks
You don't write this delegate yourself. Unity's source generator wraps the component's method in one and hands it to the runtime, which invokes it on the main thread once per released component instance.
[ReleaseComponentResources]