Skip to content

Instantly share code, notes, and snippets.

@dogles
Created February 27, 2014 15:20
Show Gist options
  • Save dogles/9252115 to your computer and use it in GitHub Desktop.
Save dogles/9252115 to your computer and use it in GitHub Desktop.
# This file determines which asset bundles will be created for the game.
#
# Bundles are first created by specifying rules and paths. There are 5 available rules:
# bundle_all: Create a SINGLE asset bundle for all files found in the specified paths. This operates recursively on directories.
# bundle_each_file: Create an asset bundle for EACH file found in the specified paths. This operates recursively on directories.
# bundle_each_folder: Create an asset bundle for EACH subfolder found in the specified paths.
# bundle_all_folders: Create a SINGLE asset bundle for all subfolders found in the specified paths.
# exclude_all: Exclude all specified files/folders from being bundled by rules specified after this rule.
# exclude_folders: Exclude files in subfolders of the specified folders from being being bundled by rules specified after this rule.
#
# Rules are executed in the order they are listed, and the first rule that that finds a file will 'own' that file. This
# means that you can specify rules for subfolders, then a different rule for parent folders to capture any remaining files.
#
# After the intial bundles are created, dependency analysis is performed. If a file in a bundle depends on a file that
# is NOT in the bundle, one of two things happen:
# 1. If the file was included in another bundle via the rules, a dependency is added to that bundle.
# 2. If the file is not in ANY bundle via the rules, it is added to this bundle. The file may potentially be
# duplicated in multiple bundles due to this.
bundle_each_file: Resources/art/2d
# bundle each character folder individually, then grab all remaining files and bundle them together.
bundle_each_folder: Resources/art/3d/characters
bundle_all: Resources/art/3d/characters
# bundle shared road materials/textures in their own bundle
bundle_all: Resources/art/3d/env/roads/road_parts/Materials, Resources/art/3d/env/roads/road_parts/textures
# make a separate bundle for each art_lit prefab
bundle_each_file: Resources/art_lit
# exclude FX materials/textures, so they will be bundled into the FX prefab bundles
exclude_all: Resources/art/3d/fx/Materials, Resources/art/3d/fx/Textures
# create a prefab for each FX
bundle_each_file: Resources/art/3d/fx
# bundle all sounds individually
bundle_each_file: Resources/sound
# bundle lightmaps individually
bundle_each_file: Scenes/Lightmaps
# bundle each UI prefab
bundle_each_file: UI/Resources
# bundle shared shaders
bundle_all: Plugins/DecalSystem/Shader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment