Skip to content

Telroshan/Unity-build-settings-presets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity build settings presets

Tested on Unity 2019.2

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.

Install

Unity package (easiest)

Simply download the unity package file from the releases and double click it (or import it in Unity)

Or clone the repo

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.

image

How to use

1 - Create preset

Click on + New (from current settings) to create a new preset.

image

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, you can remove it safely if you don't need it.

2 - Edit preset

Select a preset to view its properties in the inspector.

image

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.

image

3 - Apply preset

Via the menu bar

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

image

Via the preset inspector

In the preset inspector, you can also click the Apply button to get the same result.

image

License

This repo is MIT licensed.

About

This asset lets you save build settings presets in Unity and switch easily between them.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages