// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
using FlaxEngine;
using FlaxEngine.Utilities;
namespace FlaxEditor.States
{
///
/// In this state editor is performing closing actions and will shutdown. This is last state and cannot leave it.
///
///
[HideInEditor]
public sealed class ClosingState : EditorState
{
///
public override bool CanEditContent => false;
///
public override bool IsEditorReady => false;
///
public override string Status => "Closing...";
internal ClosingState(Editor editor)
: base(editor)
{
}
///
public override bool CanExit(State nextState)
{
// Disable exit from Closing state
return false;
}
///
public override void OnEnter()
{
Editor.CloseSplashScreen();
// Cleanup selection
Editor.Instance.SceneEditing.Deselect();
base.OnEnter();
}
}
}