using UnityEditor; using UnityEngine; public class CreateAssetBundles { [MenuItem("Assets/Build AssetBundles Android")] static void BuildAllAssetBundles() { BuildPipeline.BuildAssetBundles("AssetBundles", BuildAssetBundleOptions.ForceRebuildAssetBundle , BuildTarget.Android); } [MenuItem("Assets/Build AssetBundles IOS")] static void BuildAllAssetBundlesIOS() { BuildPipeline.BuildAssetBundles("AssetBundles", BuildAssetBundleOptions.ForceRebuildAssetBundle , BuildTarget.iOS); } }