Class CompatibilityBuildPipeline
Static class exposing convenient methods that match the BuildPipeline BuildAssetBundles(string, BuildAssetBundleOptions, BuildTarget) method, suitable for porting existing projects to the Scriptable Build Pipeline quickly. New projects could consider calling BuildAssetBundles(IBundleBuildParameters, IBundleBuildContent, out IBundleBuildResults) directly.
Inherited Members
Namespace: UnityEditor.Build.Pipeline
Assembly: Unity.ScriptableBuildPipeline.Editor.dll
Syntax
public static class CompatibilityBuildPipeline
Methods
BuildAssetBundles(string, AssetBundleBuild[], BuildAssetBundleOptions, BuildTarget)
Wrapper API to match BuildPipeline API but use the Scriptable Build Pipeline to build Asset Bundles. BuildAssetBundles(string, AssetBundleBuild[], BuildAssetBundleOptions, BuildTarget)
Declaration
public static CompatibilityAssetBundleManifest BuildAssetBundles(string outputPath, AssetBundleBuild[] builds, BuildAssetBundleOptions assetBundleOptions, BuildTarget targetPlatform)
Parameters
Type | Name | Description |
---|---|---|
string | outputPath | Output path for the AssetBundles. |
AssetBundleBuild[] | builds | AssetBundle building map. |
BuildAssetBundleOptions | assetBundleOptions | AssetBundle building options. |
BuildTarget | targetPlatform | Chosen target build platform. |
Returns
Type | Description |
---|---|
CompatibilityAssetBundleManifest | CompatibilityAssetBundleManifest object exposing information about the generated asset bundles. |
Remarks
Not all BuildAssetBundleOptions are supported in the Scriptable Build Pipeline. Supported options are: ForceRebuildAssetBundle, AppendHashToAssetBundleName, ChunkBasedCompression, UncompressedAssetBundle, and DisableWriteTypeTree. In addition, existing BuildPipeline callbacks are not yet supported.
BuildAssetBundles(string, BuildAssetBundleOptions, BuildTarget)
Wrapper API to match BuildPipeline API but use the Scriptable Build Pipeline to build Asset Bundles. BuildAssetBundles(string, BuildAssetBundleOptions, BuildTarget)
Declaration
public static CompatibilityAssetBundleManifest BuildAssetBundles(string outputPath, BuildAssetBundleOptions assetBundleOptions, BuildTarget targetPlatform)
Parameters
Type | Name | Description |
---|---|---|
string | outputPath | Output path for the AssetBundles. |
BuildAssetBundleOptions | assetBundleOptions | AssetBundle building options. |
BuildTarget | targetPlatform | Chosen target build platform. |
Returns
Type | Description |
---|---|
CompatibilityAssetBundleManifest | CompatibilityAssetBundleManifest object exposing information about the generated asset bundles. |
Remarks
Not all BuildAssetBundleOptions are supported in the Scriptable Build Pipeline. Supported options are: ForceRebuildAssetBundle, AppendHashToAssetBundleName, ChunkBasedCompression, UncompressedAssetBundle, and DisableWriteTypeTree. In addition, existing BuildPipeline callbacks are not yet supported.