Description
Changelog
Reviews
GodotAssetBundle
GodotAssetBundle is an export plugin for the Godot editor. It splits assets in designated folders into independent .pck bundles during project export.
It separates DLC, chapter content, skins, level packs and optional art assets from the main package to reduce main package size, supporting on-demand distribution and asset loading.
Features
- Folder-level bundling: Place an
AssetBundlefile inside a folder to export the folder as an individual asset pack. - Automatic main package exclusion: Assets included in sub-bundles will be excluded from the main build to avoid duplication.
- Automatic dependency collection: Analyzes asset references and packs related imported files,
.importconfigs and remap files together. - Full compatibility with scenes and regular assets: Preserves valid runtime file paths for all resource types.
- Native PCK format output: Bundles generated via official Godot
PCKPacker, compatible with standard asset loading methods.
Usage
- Put the
addons/asset_bundlefolder into your project'saddonsdirectory. - Navigate to
Project > Project Settings > Pluginsin editor and enable GodotAssetBundle. - Create an
AssetBundleresource file inside the target folder for bundling. - Configure bundle parameters:
enabled: Toggle this asset pack on or offexport_enabled: Decide whether to generate the bundle on exportpack_external_dependencies: Include out-of-folder dependencies, enabled by default
- Export the project normally. A
subpackagesfolder containing generated.pckfiles will be created in the output directory. - Load bundles at runtime with official Godot API:
ProjectSettings.load_resource_pack("res://subpackages/example.pck")
Adjust the file path according to your publish directory and target platform.
Directory Structure
addons/
asset_bundle/
AssetBundle.gd # Bundle metadata resource
AssetBundlePackUtils.gd # Dependency collecting & packing tool
export_plugin.gd # Core export logic
plugin.gd # Plugin entry
processors/
AssetBundleResourceProcessor.gd
Notes
- This plugin only handles bundle exporting, automatic download and mounting are not supported.
- All bundled assets should be stored under the folder with the
AssetBundlefile. - External dependencies will be packed automatically unless
pack_external_dependenciesis disabled. - When external dependency packing is off, only intra-folder references are collected; external assets need to be provided by main package or other bundles.
- Exported
.pckfiles inherit names from correspondingAssetBundleresources.
Changelog for version v1.0.0
No changelog provided for this version.