Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We are updating our Terms of Service for all Unity subscription plans, effective October 13, 2022, to create a more streamlined, user-friendly set of terms. Please review them here: unity.com/legal/terms-of-service.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice
  4. Join us on Thursday, September 29, for a day with Unity's SRP teams here on the forum or on Reddit, and discuss topics around URP, HDRP, and the Scriptable Render Pipeline in general.
    Dismiss Notice

Setting Unity builds to play once compilation is finished

Discussion in 'Editor & General Support' started by Doghelmer, Sep 10, 2020.

  1. Doghelmer

    Doghelmer

    Joined:
    Aug 30, 2014
    Posts:
    120
    I recently upgraded from Unity 2018.2 to 2019.4. Previously, my process went something like this:
    1. Edit and save my code in Visual Studio.
    2. Return to Unity window. Game begins to compile.
    3. Press the Play button before compilation gets to the point where the window freezes up.
    4. Once compilation finishes, the play process starts, and the game begins playing.

    In Unity 2019, I'm unable to press the Play button once the game begins to compile on Step 2 -- the button becomes locked. This means I need to wait for compilation to complete, and then press the Play button.

    This might not seem like a big deal, but this ends up costing me a bit of time, since previously I could just set the game to compile and play, go off and do something else on my PC, then return to the window once I heard game noises.

    Is there a workaround for this?
     
    PraetorBlue likes this.
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,140
    I really wish Unity would just not freeze the main UI thread while it was compiling or whatever else it's doing.

    Not blocking the UI thread with long running operations is GUI application 101. it's pretty frustrating.
     
unityunity