Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Assemblies recompile on script save, rather than on Unity Editor focus.

Discussion in 'Code Editors & IDEs' started by Botaurus, Apr 11, 2023.

  1. Botaurus

    Botaurus

    Joined:
    Feb 20, 2013
    Posts:
    81
    We set our project up with Assembly Definitions. But now the assemblies reload whenever a script is saved, rather than when Unity gains focus. Is there a way to only recompile scripts when Unity gains focus while using assembly definitions? We're in 2022.2.14
    Thank you
     
  2. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,353
    This is probably a setting in your code editor, as Unity doesn't compile in the background on saves afaik.

    If you're using Rider, you want to turn off this:
    upload_2023-4-11_14-21-16.png

    There's probably similar settings in Visual Studio and VS Code.
     
    Rodolfo-Rubens and Botaurus like this.
  3. Botaurus

    Botaurus

    Joined:
    Feb 20, 2013
    Posts:
    81
    Yup, that was it. Thank you!