欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

unity AssetBundle打包

程序员文章站 2022-03-02 11:48:18
...
[MenuItem("Assets/buildassbundle")]
static void buidassetbundle()
{
    string die = "assetbundles";
    if (Directory.Exists(die)==false)
    {
        Directory.CreateDirectory(die);
    }
    BuildPipeline.BuildAssetBundles(die, BuildAssetBundleOptions.None, BuildTarget.StandaloneWindows64);
}
相关标签: unity