Version: 2021.3

Stage.OnCloseStage

切换到手册
protected void OnCloseStage ();

描述

Unity calls this method when the Stage is closed. Classes that inherit from Stage should implement cleanup logic in this method.

A Stage can remain open even after another Stage becomes the active Stage. Unity only closes a Stage once it's no longer visible in the Scene view breadcrumb bar. OnOpenStage and OnCloseStage is only called once each.