기술 자료

Unity Engine

Unity Engine

OnViewDetached()

Called when the state's IStateView.Root is detached from its UI panel.
읽는 시간 1분최근 업데이트: 2달 전

Definition

public virtual void OnViewDetached()

Remarks

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