在Unity 5中从本地服务器创建和下载资产包 [英] Creating and Downloading Asset bundle from local server in Unity 5
问题描述
请不建议我在 Unity3d官方链接我已经尝试过了,这是不全面,不提供必要的细节。我是新的,准备做的 AssetBundles 在Unity3d。什么是到目前为止已经试过在下面给出统一的官方文档的帮助。
Please don't recommend me the Unity3d official links I have tried it and it is not comprehensive and not providing necessary details. I am new and going to make AssetBundles in Unity3d. What is tried so far is given below with the help of unity official 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
推荐答案
你应该看看高水平AssetBundleManager的 https://unity3d.com/learn/tutorials/topics/scripting/assetbundles-and-assetbundle-manager
you should look at the high level AssetBundleManager https://unity3d.com/learn/tutorials/topics/scripting/assetbundles-and-assetbundle-manager
这篇关于在Unity 5中从本地服务器创建和下载资产包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!