From 9c3cdab4bc19234718a46007bb6f4a3730583e8c Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Thu, 3 Feb 2022 11:53:49 +0100 Subject: [PATCH] Destroyer.ApplicationQuit stops Play in EditorMode now --- Runtime/Sites/Scripts/Destroyer.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Runtime/Sites/Scripts/Destroyer.cs b/Runtime/Sites/Scripts/Destroyer.cs index f89252a..07bce0e 100644 --- a/Runtime/Sites/Scripts/Destroyer.cs +++ b/Runtime/Sites/Scripts/Destroyer.cs @@ -27,7 +27,11 @@ namespace Passer { /// Exit the application /// public void ApplicationQuit() { +#if UNITY_EDITOR + UnityEditor.EditorApplication.isPlaying = false; +#else Application.Quit(); +#endif } } }