About 4,280 results
Open links in new tab
  1. Unity - How to stop Play Mode in case of infinite loop?

    19 I just got into this situation: accidental infinite loop, stuck in play mode on a scene with unsaved work, Unity unresponsive. But I was lucky enough to have Monodevelop open, even though I …

  2. unity game engine - Unity3d editor: how to prevent changes from …

    May 7, 2016 · I Occasionally forget to exit Play mode and go on building my UI making objects and changes, only to realize that I'm still in Play Mode and as soon as I unpress the play …

  3. Cannot finish the game in Unity using Application.Quit()

    Dec 21, 2021 · You can quit a game in Unity by calling the Application.Quit function, which will close a running application. However, while this works to end a built application, Application …

  4. How do I quit in standalone or in editor mode - Stack Overflow

    Sep 24, 2016 · You can't stop the editor play button and quit the game when using [InitializeOnLoad]. To quit the game you can only do it with Build And Run in Standalone mode …

  5. unityscript - How can i stop unity from script? - Stack Overflow

    Feb 28, 2015 · I need to close unity from my scripts. As if I clicked on the stop-button in GUI. Can i do this directly from code, or not? I know, how i can close a scene, but need to close all …

  6. OnDestroy() & OnApplicationQuit() in unity - Stack Overflow

    Feb 25, 2021 · What is scenario and use cases of OnDestroy () and OnApplicationQuit () functions in unity? When does we use OnDestroy () function and when OnApplicationQuit () …

  7. Why does Unity get stuck on Application.EnterPlayMode?

    Jul 30, 2020 · Then, whenever I clicked on play, unity opened a dialog box with Application.EnterPlayMode written which would not go away and never entered play mode. …

  8. Return a ScriptableObject's original value after quit Playmode in …

    Feb 20, 2023 · You can actually subscribe your ScriptableObject class to Editor's play mode state changes. A small example which demonstrate that: #if UNITY_EDITOR using UnityEditor; …

  9. c# - QuitApplication Button on unity - Stack Overflow

    May 14, 2015 · I am trying to create a Quit button in Unity, but when I add my script to the button and click it, it doesn't quit. Here is my C# script: using UnityEngine; using System.Collections; …

  10. unity game engine - How to exit playmode from another thread

    Aug 20, 2019 · Is it possible (even in a hacky way) to call EditorApplication functions from another thread? More specifically I want to exit play mode from another thread (not main Unity thread). …