BuildAssetBundleInternal() private method

private BuildAssetBundleInternal ( Object mainAsset, Object assets, string assetNames, string pathName, BuildAssetBundleOptions assetBundleOptions, BuildTarget targetPlatform, uint &crc ) : bool
mainAsset Object
assets Object
assetNames string
pathName string
assetBundleOptions BuildAssetBundleOptions
targetPlatform BuildTarget
crc uint
return bool
コード例 #1
0
 public static bool BuildAssetBundleExplicitAssetNames(UnityEngine.Object[] assets, string[] assetNames, string pathName, out uint crc, BuildAssetBundleOptions assetBundleOptions, BuildTarget targetPlatform)
 {
     crc = 0U;
     try
     {
         return(BuildPipeline.BuildAssetBundleInternal((UnityEngine.Object)null, assets, assetNames, pathName, assetBundleOptions, targetPlatform, out crc));
     }
     catch (Exception ex)
     {
         BuildPipeline.LogBuildExceptionAndExit("BuildPipeline.BuildAssetBundleExplicitAssetNames", ex);
         return(false);
     }
 }
コード例 #2
0
        internal static bool BuildAssetBundleExplicitAssetNames(UnityEngine.Object[] assets, string[] assetNames, string pathName, out uint crc, BuildAssetBundleOptions assetBundleOptions, BuildTargetGroup targetPlatformGroup, BuildTarget targetPlatform)
        {
            crc = 0u;
            bool result;

            try
            {
                result = BuildPipeline.BuildAssetBundleInternal(null, assets, assetNames, pathName, assetBundleOptions, targetPlatformGroup, targetPlatform, out crc);
            }
            catch (Exception exception)
            {
                BuildPipeline.LogBuildExceptionAndExit("BuildPipeline.BuildAssetBundleExplicitAssetNames", exception);
                result = false;
            }
            return(result);
        }
コード例 #3
0
        public static bool BuildAssetBundle(UnityEngine.Object mainAsset, UnityEngine.Object[] assets, string pathName, out uint crc, BuildAssetBundleOptions assetBundleOptions, BuildTarget targetPlatform)
        {
            crc = 0u;
            bool result;

            try
            {
                result = BuildPipeline.BuildAssetBundleInternal(mainAsset, assets, null, pathName, assetBundleOptions, targetPlatform, out crc);
            }
            catch (Exception exception)
            {
                BuildPipeline.LogBuildExceptionAndExit("BuildPipeline.BuildAssetBundle", exception);
                result = false;
            }
            return(result);
        }