Whether this is a valid scene. A scene may be invalid if, for example, you tried to open a scene that does not exist. In this case, the scene returned from EditorSceneManager.OpenScene would return False for IsValid.
public bool IsValid() { return IsValidInternal(this.handle); }
private IEnumerator _UnloadCurrentUIScene() { if (currentUIScene.IsValid() && currentSceneBase != null) { yield return(currentSceneBase.Out()); } }