请不要向我推荐我尝试过的Unity3d官方链接,它并不全面,没有提供必要的详细信息.我是新手,打算在Unity3d中制作AssetBundles.到目前为止,在统一官员docs的帮助下给出了到目前为止已尝试的操作.
/// <summary>
/// AssetBundles are exported from the editor using script code. (This is similar to the 4.x approach.)
/// The following script exports AssetBundles.
/// </summary>
public class AssetBundleCreate {
[MenuItem("Assets/Build AssetBundles")]
static void BuildAllAssetBundles() {
Debug.Log("asset build");
BuildPipeline.BuildAssetBundles("Assets/AssetBundles");
}
[MenuItem("Assets/Get AssetBundle Names")]
static void GetNames() {
var names = AssetDatabase.GetAllAssetBundleNames();
foreach(var name in names){
Debug.Log("AssetBundle name is : " + name);
}
}
}
但是代码并未产生任何资产束,而是产生了资产束.
文件和.abc扩展文件.
我缺少的东西,还分享了有关在Unity 5中从本地服务器/ PC创建和下载资产捆绑包的正确指南
解决方法:
您应该看一下高级AssetBundleManager https://unity3d.com/learn/tutorials/topics/scripting/assetbundles-and-assetbundle-manager
原文地址:https://codeday.me/bug/20191027/1946763.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。