Disabling the generation of folders: BackUpThisFolder and BurstDebugInformation

Hello all,

I have a project created with Unity 2022, but when I build the .apk file it also generates 2 folders: BackUpThisFolder_ButDontShipItWithYourGame and BurstDebugInformation_DoNotShip.

I understand these can be useful, but in the stage myself I am I don’t need them.

I’ve created projects using Unity 2020 and Unity 2019 and I’ve never had these folders generated alongside with apk / aab / xCode.

I’ve tried to match the player settings as much as possible in the 2022 version with what I have in the 2020 and 2019 version, to make the 2022 version not generate these folders, but it still does.

Can anyone please tell me what settings I need to change in order for these 2 folders (BackUpThisFolder_ButDontShipItWithYourGame and BurstDebugInformation_DoNotShip) not be generated alongside with the apk / aab / xCode file?

I’m not very advanced at coding, so I hope I can do this without code involved, but from settings somewhere - as it is the case for 2020 and 2019 versions. And I also hope unity is not actually forcing me to have this folders in the 2022 version “because is better for me”, without the option to be disabled.

Again, I understand these may be useful, but they’re not for me in the stage I am now, therefore I need them to not be created because this increase a lot the time needed to build + storage.

Many thanks!

Unity has some API to execute code right after a build. Use that and delete the folders there.

You can’t stop their generation as they’re required by the build process (specifically by C++). Unity is copying them into the build folder because they’re mandatory for debugging crash dumps. If you must delete them (copying to a new location is highly recommended) you can use a build script like the one linked below.

https://discussions.unity.com/t/770599/9

Unity has always generated these folders if the features dependent on their build stages were used. The first folder is generated by IL2CPP (if you’ve used Mono in the past you wouldn’t see it), and the second by the Burst compiler.

Thank you for taking the time to answer!

I’m sure that in my 2019, 2020 and I also realised that in 2021 projects (while I also have IL2CPP selected instead Mono), when I build and I choose let say Desktop as a place for the apk or aab, then at the end I have only that file, nothing more.

I found out about Burst, and I’ve realised the package was not part of the unity 2019 - 2021 projects, and now I know how to to not generate the folder in 2022 version.

In regards with BackUpThisFolder_ButDontShipItWithYourGame - I understand that “generation is required by the build process”, and I don’t mind deleting the folder when I don’t need it, but I feel like is taking more time than on 2019 to 2021 versions, and again, I’m sure that the folder was not generated in the same location with the apk/aab in the previous versions (and this is the case not for 1-2 projects, but for more than 15 for both Google Play destination and App Store, and apk for Amazon App store).

Actually now is the first time after 2 years of building finding out about this backup folder, this is why I tried to understand how to stop its generation in the same location with the target (as I knew it was the standard before) - and I can still do this if I build a new version of my games that uses 2019 to 2021 unity versions → to generate apk/aab/xCode without any extra BackUpThisFolder_ButDontShipItWithYourGame folder.