Skip to content

Conversation

@leknes
Copy link

@leknes leknes commented Dec 5, 2024

When using ExtEvents with Unity 6 an error was thrown that the EditorUserBuildSettings.il2CppCodeGeneration is obsolete and PlayerSettings.GetIl2CppCodeGeneration should be used instead. This was, because the preprocessor directive that ensured that the right member is used, only used PlayerSettings.GetIl2CppCodeGeneration for Unity 2022, but not newer versions.

To support newer versions, I just changed the preprocessor directive to also include any version, newer than Unity 2022.

Made it so that versions that are newer than Unity 2022 also use PlayerSettings.GetIl2CppCodeGeneration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant