Search Unity

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,909
    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.