Version: 2017.4
Obsolete public static bool BuildAssetBundle (Object mainAsset, Object[] assets, string pathName, BuildAssetBundleOptions assetBundleOptions, BuildTarget targetPlatform);
Obsolete public static bool BuildAssetBundle (Object mainAsset, Object[] assets, string pathName, out uint crc, BuildAssetBundleOptions assetBundleOptions, BuildTarget targetPlatform);

パラメーター

mainAsset AssetBundle.mainAsset を使用して簡単に取得したいオブジェクトを指定することができます。
assetsバンドルに書き込むアセットの配列
pathName圧縮したアセットバンドルを書き込むファイル名 (filename)
assetBundleOptions自動的に依存関係を含めたり、ただ参照されたオブジェクトのみだけでなく常に関係するすべてのアセットを含める設定ができます。
targetPlatform作成されたバンドルが使用されるプラットフォーム
crcThe optional crc output parameter can be used to get a CRC checksum for the generated AssetBundle, which can be used to verify content when downloading AssetBundles using UnityWebRequest.GetAssetBundle.

説明

アセットバンドルをビルドします

Creates a compressed unity3d file that contains a collection of assets. AssetBundles can contain any asset found in the project folder. This lets you stream resource data of any type, fully setup prefabs, textures, meshes, animations, any type of asset shown in the project window.
All paths are relative to the project folder. Like: "Assets / MyTextures / hello.png".


Note that asset bundles built for standalone targets cannot be loaded by applications built for mobile platforms and vice versa. Furthermore, bundles are not compatible between iOS and Android platforms.

関数の戻り値は boolean 型であり、ビルドが成功した場合は true、そうでなければ false です。

BuildAssetBundle has been made obsolete. Please use the new AssetBundle build system introduced in 5.0 and check BuildAssetBundles documentation for details.

See Also: AssetBundle class, DownloadHandlerAssetBundle.