BuildAssetBundlesInternal() private method

private BuildAssetBundlesInternal ( string outputPath, BuildAssetBundleOptions assetBundleOptions, BuildTarget targetPlatform ) : AssetBundleManifest
outputPath string
assetBundleOptions BuildAssetBundleOptions
targetPlatform BuildTarget
return UnityEngine.AssetBundleManifest
Esempio n. 1
0
 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));
 }
Esempio n. 2
0
 /// <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);
     }
 }
Esempio n. 3
0
        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);
        }