Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Resolved 2022.1.0a15 il2CppCodeGeneration change

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

  1. adamgolden

    adamgolden

    Joined:
    Jun 17, 2019
    Posts:
    1,555
    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:
    146
    From release notes:
     
    LeonhardP and adamgolden like this.
  3. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,936
    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 adamgolden like this.
  4. joncham

    joncham

    Unity Technologies

    Joined:
    Dec 1, 2011
    Posts:
    276