Info
- Multi-platform and extensible tool for building the final executables
- Supports running from batch mode, prepared for use from CI/CD
- Use Build Helper Window in Editor -
CTRL + G
Setup
- Global Settings - settings shared across all platforms (servers and clients)
- User Configs - Each developer can have their adjustments to the build, mainly for the build path
- Platform Configs - Platform-specific configuration, usually for player settings and other platform-dependent configuration
- Build Presets - Record containing Platform config, current user, and other info to start the build runner
- Build Runner - Object holding the whole process of building, is serialized in case something interrupts it
- Build Context - Context of the ongoing build, contains state, results, and other info about the build
Defines
- (Compilation Constants)
- Available in Global Settings, User Config, and Platform Config
- Setting defines is the preferred way of changing functionality between platforms
- You can make your own defines
- Current editor defines are saved before build, and then restored afterwards
Actions
- Available in Global Settings, User Config, and Platform Config
- Custom actions that can be applied during the build routine
- There are 4 different callbacks
OnStateCapture - Before any state of the editor is changed
OnPreprocess - Build target is prepared and defines the applied
OnPostprocess - Build target and defines are still in build state
OnStateRestore - Editor is restored to the original state
- To create custom actions, inherit from
ABuildAction
Global Settings
- Settings shared across all platforms (servers and clients)
- Specifies the version that will be applied to the build