1

我希望创建一个包含一些文本文件的资产包,这些文本文件是我项目中的文本资产。

奇怪的是,如果我这样做:

AssetBundleBuild buildInfo = new AssetBundleBuild { 
    assetBundleName = "textAssets.unity3d",
    assetNames = new [] {"Assets/firstFile.txt"}};
}

它可以工作并在里面创建一个 textAssets.unity3d 文件,但是如果我这样做:

AssetBundleBuild buildInfo = new AssetBundleBuild { 
    assetBundleName = "textAssets.unity3d",
    assetNames = new [] {"Assets/firstFile.txt", "Assets/secondFile.txt"}};
}

它不起作用,似乎我需要为每个 prefab/file.txt 创建一个assetbundle 谢谢你的帮助

4

0 回答 0