| Parameter | Description |
|---|---|
| callback | The callback to invoke when the reference is unloaded. |
Registers a callback for when the referenced object is unloaded. This occurs when the document is destroyed, such as when a live reload occurs after the VisualTreeAsset changes. At this point, all references are invalid and should be cleared.