Magic.Unity icon indicating copy to clipboard operation
Magic.Unity copied to clipboard

`BuildReport.files` is not working in new Unity version

Open skydread1 opened this issue 2 years ago • 0 comments

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

skydread1 avatar Jun 12 '23 03:06 skydread1