public static void BuildAssetBundlesForCurrentPlatform() { var targetPlatform = AssetBundleEditorUtility.GetCurrentBuildTarget(); if (targetPlatform != BuildTarget.NoTarget) { var options = AssetBundleEditorUtility.GetBuildOptions(); AssetBundleBuilder.Build(targetPlatform, options); } else { Debug.LogError("Current platform has not supported."); } }
public static void BuildAssetBundlesForWebGL() { var options = AssetBundleEditorUtility.GetBuildOptions(); AssetBundleBuilder.Build(BuildTarget.WebGL, options); }
public static void BuildAssetBundlesForWindows() { var options = AssetBundleEditorUtility.GetBuildOptions(); AssetBundleBuilder.Build(BuildTarget.StandaloneWindows64, options); }