This tool lets you save build settings presets in Unity and switch easily between them.
On a project, I needed 2 different standalone builds (a client build, and a server build), with different settings, different scene lists and different script compilation defines. It was pretty boring to manually change those settings each time I'd want to build my game, so here came the Unity build settings presets system.
Note: this doesn't mean that this tool won't work on other Unity versions; these are simply the 2 versions that I've tested it on. If you're on another Unity version, you may have to make a few changes to the code depending on the API changes of that specific Unity version._
So, it could work on other Unity versions, but there's no guarantee!
Feel free to open an issue to request support for a specific Unity (LTS) version!
Simply download the unity package file from the releases and double click it (or import it in Unity)
Download this repo and place it in your Unity project's Assets folder.
You should now have a Build presets
menu in the menu toolbar.
Click on + New (from current settings)
to create a new preset.
Note : this creates a preset based on your current build settings.
Note2 : you can also duplicate an existing preset and start working with it
Presets are stored as assets in the Unity-build-settings-presets/Presets
folder. You'll find a Default
preset there, which just contains the basic build settings for standalone (Windows), you can remove it safely if you don't need it.
Select a preset to view its properties in the inspector.
You can edit the properties directly from there.
The preset's properties match the EditorUserBuildSettings's properties, except the scene list
and script compilation defines
that are in the PlayerSettings.
You can also click on the "Overwrite with current build settings" button to replace the preset's properties with the current build settings.
You can apply a preset (thus replacing your current build settings by the preset's properties) by clicking on its name in the menu bar
In the preset inspector, you can also click the Apply
button to get the same result.
This repo is MIT licensed.