AutoBuildTool is a editor utility for Unity that automates the process of creating client and server builds. It handles semantic version bumping, supports Unity's BuildProfile system, and allows you to define custom folder hierarchies and files to be automatically generated alongside your builds.
Editor/
├── Build/
│ ├── AutoBuildScript.cs # Main build pipeline
│ ├── AutoBuildSettings.cs # ScriptableObject config + profile discovery
│ ├── CustomFolder.cs # Folder definition
│ └── CustomFile.cs # File / asset-copy definition
│
├── AutoBuildSettingsEditor.cs # Custom inspector UI
├── BuildFolderTreeView.cs # Tree view logic
└── BuildFolderTreeItem.cs # Tree item model
- Automated Client & Server Builds: Build both your client and server sequentially with a single click.
- Automatic Profile Discovery: All Unity
BuildProfileassets in the project are found automatically and listed with a per-profile enable checkbox — no manual assignment. Profiles whose name containsServeras a whole word are treated as server profiles. - Build Retention: Optionally keep only the N newest build versions, deleting older ones automatically after each successful build.
- Copy Project Assets: Besides generating text files, a post-build entry can copy any existing file or folder from your project into the build output (
.metafiles are skipped). - Custom Post-Build Directories: Visually design a custom folder hierarchy to be generated inside the build folder.
- Custom Post-Build Files: Automatically create text files (e.g.,
README.txt, configuration.json, or.inifiles) with predefined content using the built-in text editor. - Semantic Versioning: Automatically bump your project's version (Major, Minor, Patch, or Build) directly from the toolbar. Format:
Major.Minor.Patch:Build. - Advanced TreeView GUI: A robust, user-friendly inspector featuring right-click context menus, nested folders, and full keyboard shortcut support (Copy, Paste, Duplicate, Delete, Rename).
- Unity version supporting
BuildProfileand[SerializeReference](Unity 6.3+ recommended). - Ensure your project has standard Build Profiles set up (
File > Build Profiles).
- Place the
AutoBuildToolscripts into anAssetsfolder. - Once Unity compiles, a new Build menu will appear in the top menu bar.
Navigate to Build > Auto Build Settings in the top menu.
If a settings asset doesn't exist, the tool will automatically create one at Assets/Editor/AutoBuildSettings.asset and select it.
- Assign Build Profiles
- Add Custom Folders / Files
- Enable
Enable Server Build - Assign server profiles
- Configure additional content
Use the Folder Tree section to construct the directories and files that should be packaged with your game.
- Add Root Folder/File: Click the buttons below the tree view, or right-click in the empty space and select Add.
- Edit File Content: Click on any generated file in the TreeView. A text editor will appear at the bottom of the inspector, allowing you to write the contents of the file.
- Nesting: Right-click on any folder in the TreeView to add sub-folders or files inside it.
- Add root folders/files
- Rename (double-click or
R) - Context menu (right-click)
| Shortcut | Action |
|---|---|
Ctrl + N |
New File |
Ctrl + Shift + N |
New Folder |
R or F2 |
Rename |
Delete |
Delete |
Ctrl + C |
Copy |
Ctrl + V |
Paste |
Ctrl + D |
Duplicate |
Example:
1.2.0:15
| Type | Result |
|---|---|
| Build | 1.2.0:15 → 1.2.0:16 |
| Patch | 1.2.0 → 1.2.1:0 |
| Minor | 1.2.0 → 1.3.0:0 |
| Major | 1.2.0 → 2.0.0:0 |
- Build is triggered via menu
- Version is bumped
- Unity builds using selected Build Profiles
- Output folder is created
- Custom folders/files are injected
- Only one
AutoBuildSettingsasset should exist - If multiple are found, the first one is used (warning logged)
- Server build is optional and fully toggleable
- No
BuildOptionsare applied — compression and other options come from the Build Profile itself - A build aborts (and the version is not bumped) if no profiles are enabled
- Each profile builds in isolation; one failure does not abort the remaining profiles
Output Structure:
Builds are output to a Builds/ folder in your project root, categorized by the safe version name, then by platform and profile name — so several profiles targeting the same platform never overwrite each other:
MyProject/
├─ Builds/
│ ├─ v.1.0.0_1/
│ │ ├─ Client/
│ │ │ ├─ StandaloneWindows64/
│ │ │ │ ├─ Client-Release/
│ │ │ │ │ ├─ MyGame.exe
│ │ │ │ │ ├─ (Your Custom Folders & Files)
│ │ │ │ ├─ Client-Dev/
│ │ │ │ │ ├─ MyGame.exe
│ │ ├─ Server/
│ │ │ ├─ StandaloneLinux64/
│ │ │ │ ├─ Server-Linux/
│ │ │ │ │ ├─ MyGame_Server.x86_64
- Executable Names: The client executable defaults to
PlayerSettings.productName, while the server appends_Server. The extension is derived from the profile's build target (.exeWindows,.x86_64Linux,.appmacOS,.apkAndroid); targets that produce a directory rather than a single file (WebGL, iOS) build straight into the profile folder. - Build Retention: Old build folders are ranked by the version parsed from their name, not by filesystem timestamps, and the build just produced is never a deletion candidate.
- Drag & drop support in tree view
- Custom File content generation (e.g. JSON config with list like editor)
| Type | Name | Value |
|---|---|---|
| String | playerName | "AndrzejKebab" |
| Number | playerHP | 100 |
| Bool | IsDead | False |
| Nested? | ---------- | -------------- |