ドキュメント

Unity Engine

Unity Engine

OnViewDetached()

Called when the node's INodeView.Root is detached from its UI panel.
読み終わるまでの所要時間 1 分最終更新 2ヶ月前

Definition

public virtual void OnViewDetached()

Remarks

Fires whenever the visual element receives a DetachFromPanelEvent. Like NodeView<T>.OnViewAttached, this can fire multiple times in a node's lifetime (tab switches, block-node drags, and so on), and a matching NodeView<T>.OnViewAttached may follow. Use this callback to release resources tied to panel presence, such as event subscriptions or scheduled tasks.