• This repository has been archived on 08/Mar/2024
  • Stars
    star
    103
  • Rank 322,538 (Top 7 %)
  • Language
    C#
  • License
    Other
  • Created about 7 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Batch build for multiple platforms from within the Unity editor

Unity MultiBuild

What it does

Provides you with a simple in-editor interface to build for multiple platforms at once.

Screenshot

How to use (Interactive)

  1. From the menu, click Tools > MultiBuild...
  2. Choose a base output folder (each platform will build into a subfolder)
  3. Add the platforms you want to build for
  4. Click the green build button

How to use (Command line)

Option 1: Build using all settings last saved in UI

Unity -quit -batchmode -executeMethod MultiBuild.Builder.Build

This invokes MultiBuild using all the settings you specified when you last used the UI (you have to have used it at least once or this will fail). Includes the output folder, the targets you picked, and whether it was development mode etc.

Option 2: Build using settings specified on command line

Unity -quit -batchmode -executeMethod MultiBuild.Builder.BuildCommandLine <outputFolder> <is_dev> <targetName> [targetName...]

In this mode you specify the output folder, whether to build in development mode (just a 'true' or 'false'), and a list of targets, which must match the entries in the Target enum in Settings.cs, e.g. "Win64".

This mode is useful because there is no standard way to build a development mode player in Unity from the command line right now.

More details

  • The scenes that are built are the ones you've selected in Build Settings
  • By default the project name is used as a base for all output, but you can disable that and provide a different name if you like
  • Your settings are saved in your project at Assets/MultiBuild/MultiBuildSettings.asset
  • After finishing the build, the active target is reset to whatever it was before you started the build
  • Be aware that I've only really tested this with the standalone builds right now

Why?

I often build for several platforms and found it tedious to keep switching in the Build Settings window. It was useful to me to be able to build both with the Unity editor still open (you can't use the command line build when it's open), and to be able to use the saved settings from the command line.

Even if you use the full command line mode where you specify all the targets, it's simpler when using a lot of targets (shared base folder, automatic subfolders), plus you can also change the "Development mode" flag with this tool, which you cannot with the vanilla Unity command line build.

Contributing

I'm not going to be spending loads of time on this so if you want a new feature or you find a problem with one of the targets (or want to add more of them), please fork and submit a pull request in the first instance. All contributions welcome!

License (MIT)

Copyright Β© 2017 Steve Streeting

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

lfs-folderstore

git-lfs custom transfer adapter which simply uses a folder as the remote LFS media store (e.g. a shared NAS folder)
Go
283
star
2

SPUD

Steve's Persistent Unreal Data library
C++
281
star
3

UnityRecyclingListView

A fast scrolling list component for Unity UI which recycles its child elements
C#
173
star
4

UnityInstancedHealthBars

Example projects using instancing in Unity to render enemy health bars in 1 draw call
C#
146
star
5

StevesUEHelpers

A plugin adding a bunch of common helper functionality that I use in my UE projects
C++
140
star
6

UnityCsvUtil

Lightweight but type safe CSV serialise/deserialise of objects
C#
136
star
7

UEScripts

Helper scripts for Unreal Engine
PowerShell
120
star
8

SUQS

Steve's Unreal Quest System: data-driven quest system for Unreal Engine
C++
100
star
9

SUDS

Steve's Unreal Dialogue System
C++
69
star
10

UnitySpline2D

2D spline utility for Unity
C#
68
star
11

UnityToonPBS

Adaptation of the standard Unity PBS shader to include Toon lighting
ShaderLab
28
star
12

spriterecolour

Sprite processor to allow dynamic recolouring
Go
26
star
13

SpriteRecolourUnity

Demo project for spriterecolour in Unity
C#
22
star
14

UnityBuildReleasePS

Set of useful Powershell scripts for batch building games made in Unity and releasing them to Itch & Steam
PowerShell
20
star
15

GitScripts

A series of useful Git scripts that I use
PowerShell
17
star
16

SUSS

Steve's UtilityAI SubSystem (for Unreal Engine 5)
C++
15
star
17

SPUDExamples

An example project for SPUD
C++
13
star
18

StevesUEExamples

Example project that demonstrates the use of StevesUEHelpers
C#
10
star
19

git-lfs-ssh-serve

Experimental reference implementation of pure SSH server for Git-LFS
Go
8
star
20

FbxUdimUnpack

Tool for unpacking a model that uses UDIMs into a form more suitable for real-time use (separate materials per texture tile)
C++
7
star
21

SSSelectableToolbar

A preference-pane style selectable toolbar which switches views easily, allowing different sizes per pane, and not requiring a lot of manual code.
Objective-C
6
star
22

StevesUnrealUtils

Miscellaneous Unreal utilities
C++
6
star
23

SUDSExample

Example project for SUDS (Steve's Unreal Dialogue System)
C#
5
star
24

recipes

Just some recipes (real ones, as in baking / cooking)
5
star
25

UnityMarchingSquares

C#
5
star
26

SJSWolf

An old codebase from 1995 implementing a Wolfenstein engine
C++
4
star
27

PhotosExport

Export content from Photos.app to a directory
Objective-C
3
star
28

SUDSProExample

C++
3
star
29

suds-code

VSCode plugin for SUDS
Batchfile
3
star
30

cocoa2dotnet_translationconversion

Convert Cocoa .strings localisation files to .Net resource files
Python
2
star
31

s3putsecurefolder

Syncs the contents of a folder to Amazon S3, optionally encrypting the files with GPG beforehand.
Python
1
star