Example #1
0
        public static void BuildAssetBundles()
        {
            // Choose the output path according to the build target.
            string outputPath = Path.Combine(AssetBundlesOutputPath, AssetBundleUtils.GetPlatformName());

            if (!Directory.Exists(outputPath))
            {
                Directory.CreateDirectory(outputPath);
            }

            //@TODO: use append hash... (Make sure pipeline works correctly with it.)
            BuildPipeline.BuildAssetBundles(outputPath, BuildAssetBundleOptions.AppendHashToAssetBundleName, EditorUserBuildSettings.activeBuildTarget);
        }
Example #2
0
 static public AssetBundleLoadManifestOperation Initialize()
 {
     return(Initialize(AssetBundleUtils.GetPlatformName()));
 }
Example #3
0
 public static void SetSourceAssetBundleURL(string absolutePath)
 {
     BaseDownloadingURL = absolutePath + AssetBundleUtils.GetPlatformName() + "/";
 }