Search Unity

I have a dumb question: What is "Windows Build Support (IL2CPP)"?

Discussion in 'Getting Started' started by CraftyMaelyss, Sep 27, 2018.

Thread Status:
Not open for further replies.
  1. CraftyMaelyss

    CraftyMaelyss

    Joined:
    Jul 23, 2016
    Posts:
    8
    I'm self taught with Unity and Blender and for a good while now I have been using an older version of Unity (Unity 5.3.5f1) and decided to upgrade to a newer version because of some issues I noticed with importing models. I'm about to install but I noticed this new option for Windows Build Support (IL2CPP) and never having heard it before I tried Googling it but there's no clear/specific answer. I read something about compiling C# to C++ (I think) and I really want to make sure I'm not skipping out on anything vital.

    I'm working on my first game ever and my aim to for it to work on most Windows computers and I don't know if this is a vital component or if I can go back and download it if it turns out I actually need it.
     
  2. CraftyMaelyss

    CraftyMaelyss

    Joined:
    Jul 23, 2016
    Posts:
    8
  3. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    And yes, you can always re-run the installer to install any component you need later.
     
  4. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    For anyone who wants the TLDR; version, a "normal" build using the mono runtime compiles to IL, which when you run your build is compiled on the fly to machine code. IL2CPP goes further by compiling the IL to C++ and then to machine code during the creation the build.
     
  5. cloa513

    cloa513

    Joined:
    Jan 3, 2016
    Posts:
    79
    Other platforms support AOT and IL2CPP, but don’t allow JIT compilation- which the scripting link doesn't explain (it lists AOT and IL2CPP)- which platforms don't allow JIT?
     
  6. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,929
    It might actually be easier to say which platforms do allow JIT. :)

    JIT is only an option on desktop platforms (Windows, macOS, and Linux) as well as Android. Other platforms don't allow JIT.
     
    gabearts and ursalvat1on like this.
Thread Status:
Not open for further replies.