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 have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Prevent recompile after build?

Discussion in 'Editor & General Support' started by nicmarxp, Jul 30, 2018.

  1. nicmarxp

    nicmarxp

    Joined:
    Dec 3, 2017
    Posts:
    404
    Each time I make a build (OS X), which takes about 20 seconds, the editor seems to recompile/reload all scripts, just like when I edit any of the .cs files.

    Since I build a lot to test network features, I need to wait another 15-20 seconds for the editor to recompile, before I can start play mode in the editor.

    Is there a reason that it recompiles and can it be disabled? No code has been changed after the build, only files in the Builds folder, if I'm not mistaken.

    Thanks!
     
  2. Nicolas1212

    Nicolas1212

    Joined:
    Dec 18, 2014
    Posts:
    139
    - Are you sure it's recompiling and not doing something like baking lightmaps?
    - Where is your build folder located? Inside Assets by any chance?
     
  3. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,201
    This happens for me as well, on all projects, for years. I've stopped thinking about it, really, but now that somebody brings it up I'd be really glad to know if there's a reason for why it happens.
     
    MD_Reptile likes this.
  4. nicmarxp

    nicmarxp

    Joined:
    Dec 3, 2017
    Posts:
    404
    I’m not sure but it takes about the same time as compiling. Gee i wish unity could speed this up some day :) assembly files didn’t work for me.

    It’s not baking light maps, that’s disabled. The build folder is in the root folder of the project.

    Maybe I should check if any files change in the asset folder, that usually recompile things, at least .cs files..