Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

Resolved 2022.1.0a15 il2CppCodeGeneration change

Discussion in '2022.1 Beta' started by polemical, Nov 18, 2021.

  1. polemical

    polemical

    Joined:
    Jun 17, 2019
    Posts:
    1,177
    I had an error after upgrade from 0a12 (and can't recall seeing it in 0a13 when I tried that a while back),

    error CS0117: 'EditorUserBuildSettings' does not contain a definition for 'il2CppCodeGeneration'

    I did see there's an
    EditorUserBuildSettings.il2CppCodeGeneratione
    (notice the "e" suffix), but that says deprecated. How do we now switch between UnityEditor.Build.Il2CppCodeGeneration.OptimizeSpeed and UnityEditor.Build.Il2CppCodeGeneration.OptimizeSize - or is that no longer a thing ?
     
  2. ScottyB

    ScottyB

    Joined:
    Apr 4, 2011
    Posts:
    142
    From release notes:
     
    LeonhardP and polemical like this.
  3. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,753
    It looks like there is a typo in the name as well: EditorUserBuildSettings.il2CppCodeGeneratione should be EditorUserBuildSettings.il2CppCodeGeneration. We will correct that.

    But as the releases notes say, this option was moved to the player settings.
     
    LeonhardP and polemical like this.
  4. joncham

    joncham

    Unity Technologies

    Joined:
    Dec 1, 2011
    Posts:
    271
unityunity