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

Resolved Single compilation

Discussion in 'Scripting Dev Blitz Day 2023 - Q&A' started by OndrejP, Feb 22, 2023.

  1. OndrejP

    OndrejP

    Joined:
    Jul 19, 2017
    Posts:
    297
    I've read somewhere there will be "single" compilation.

    Does this mean when I have Visual Studio and Unity opened, it will compile once and result will be available to both?
    When I compile manually in VS, does this mean Unity will "pick up" the compilation result? (awesome!)
     
  2. xoofx

    xoofx

    Unity Technologies

    Joined:
    Nov 5, 2016
    Posts:
    412
    Yes, ideally, we would like minimize the amount of compilation going on.

    Today, if you are in your IDE, you change a file and you compile it in the IDE but if you switch back to Unity, Unity will do exactly the same operation. It is quite a waste of time. Also, what you compile in the IDE is often, not necessarily what you are really going to compile in the Unity Editor (the compilation pipelines are completely different), so we know that the current experience is very unpleasant.

    What we would like to achieve is that:
    1. What we compile in the IDE is using the exact same compilation pipeline used in Unity.
    2. If you compile in the IDE, we should not have to recompile in Unity.
    In order to achieve this, we will need to move away from our custom compilation pipeline in Unity, and use the more standard and ubiquitous MSBuild. The same MSBuild that is used to compile standard .NET projects these days.

    The benefit of using MSBuild will also open a lot more opportunities for our users (e.g NuGet, customize the compilation pipeline...etc.)
     
    bdovaz, Ryiah, NotaNaN and 3 others like this.
  3. OndrejP

    OndrejP

    Joined:
    Jul 19, 2017
    Posts:
    297
    Perfect, thank you for the answer!