using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Security.Cryptography;
using UnityEditor;
using UnityEngine;
public class CreateAssetBundles
{
private static string AssetBundlesPath = Path.Combine(Application.streamingAssetsPath, "AssetBundle");
private static string assetBundleName = null;
[MenuItem("Assets/自定义命令/生成AssetBundlesWindows64")]
private static void BuildAllAssetBundle()
{
string path = Path.Combine(AssetBundlesPath, "Windows64");
SetSelectFolderFileBundleName();
BuildAssetBundles(path, BuildTarget.StandaloneWindows64);
DeleteFile(path);
AssetDatabase.Refresh();
}
[MenuItem("Assets/自定义命令/生成AssetBundlesWebGL")]
private static void BuildAssetBundlesWebGL()
{
Unity在线展厅——打包AB包
最新推荐文章于 2024-05-31 14:39:33 发布