Magic.Unity
Magic.Unity copied to clipboard
`BuildReport.files` is not working in new Unity version
Problem
Magic.Unity use Unity api BuildReport.files in BuildPreprocessor.
However, the api changed in newer version of Unity.
Suggestion
#if UNITY_2022_1_OR_NEWER
foreach (var file in report.GetFiles())
#else
foreach (var file in report.files)
#endif