private BuildAssetBundlesInternal ( string outputPath, BuildAssetBundleOptions assetBundleOptions, BuildTarget targetPlatform ) : |
||
outputPath | string | |
assetBundleOptions | BuildAssetBundleOptions | |
targetPlatform | BuildTarget | |
Результат |
internal static AssetBundleManifest BuildAssetBundles(string outputPath, BuildAssetBundleOptions assetBundleOptions, BuildTargetGroup targetPlatformGroup, BuildTarget targetPlatform) { if (!Directory.Exists(outputPath)) { throw new ArgumentException("The output path \"" + outputPath + "\" doesn't exist"); } return(BuildPipeline.BuildAssetBundlesInternal(outputPath, assetBundleOptions, targetPlatformGroup, targetPlatform)); }
/// <summary> /// <para>Build all AssetBundles specified in the editor.</para> /// </summary> /// <param name="outputPath">Output path for the AssetBundles.</param> /// <param name="assetBundleOptions">AssetBundle building options.</param> /// <param name="targetPlatform">Target build platform.</param> public static AssetBundleManifest BuildAssetBundles(string outputPath, [DefaultValue("BuildAssetBundleOptions.None")] BuildAssetBundleOptions assetBundleOptions, [DefaultValue("BuildTarget.WebPlayer")] BuildTarget targetPlatform) { if (!Directory.Exists(outputPath)) { Debug.LogError((object)("The output path \"" + outputPath + "\" doesn't exist")); return((AssetBundleManifest)null); } try { return(BuildPipeline.BuildAssetBundlesInternal(outputPath, assetBundleOptions, targetPlatform)); } catch (Exception ex) { BuildPipeline.LogBuildExceptionAndExit("BuildPipeline.BuildAssetBundles", ex); return((AssetBundleManifest)null); } }
public static AssetBundleManifest BuildAssetBundles(string outputPath, BuildAssetBundleOptions assetBundleOptions, BuildTarget targetPlatform) { if (!Directory.Exists(outputPath)) { Debug.LogError("The output path \"" + outputPath + "\" doesn't exist"); return(null); } AssetBundleManifest result; try { result = BuildPipeline.BuildAssetBundlesInternal(outputPath, assetBundleOptions, targetPlatform); } catch (Exception exception) { BuildPipeline.LogBuildExceptionAndExit("BuildPipeline.BuildAssetBundles", exception); result = null; } return(result); }