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. The 2022.2 beta is now available for testing. To find out what's new, have a look at our 2022.2 feature highlights.
    Dismiss Notice
  3. We are updating our Terms of Service for all Unity subscription plans, effective October 13, 2022, to create a more streamlined, user-friendly set of terms. Please review them here: unity.com/legal/terms-of-service.
    Dismiss Notice
  4. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice
  5. Join us on Thursday, September 29, for a day with Unity's SRP teams here on the forum or on Reddit, and discuss topics around URP, HDRP, and the Scriptable Render Pipeline in general.
    Dismiss Notice
Dismiss Notice
Submit bug reports tagged with #Beta2022Win_Unity when you encounter unknown issues while testing the 2022.2 betas for a chance to win a year of Unity Pro. For more information, have a look at our Beta Sweepstakes Announcement.

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,241
    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 polemical like this.
  3. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,205
    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