-
-
Save yangpei1010110/bb1ed9757990d3a5abe1088f118f2f0a to your computer and use it in GitHub Desktop.
Revisions
-
yCatDev created this gist
May 1, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ using UnityEditor; using UnityEditor.Build; using UnityEditor.Build.Reporting; public class CppBuildPreprocessing : IPreprocessBuildWithReport { public int callbackOrder { get { return 0; } } public void OnPreprocessBuild(BuildReport report) { string addlArgs = "--generics-option=None,EnableFullSharing"; UnityEngine.Debug.Log( $"Setting Additional IL2CPP Args = \"{addlArgs}\" for platform {report.summary.platform}"); PlayerSettings.SetAdditionalIl2CppArgs(addlArgs); } }