我希望创建一个assetbundle,其中包含一些文本文件,这些文本文件是我的项目中的文本集。
奇怪的是,如果我这样做:
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 谢谢你的帮助