Unity AssetBundle 加载

来源:互联网 发布:微信加粉软件 编辑:程序博客网 时间:2024/05/20 22:03
    IEnumerator load()    {        WWW r = new WWW("http://192.168.31.112:8080/pp/ak.assetbundle");        yield return r;        print(r.error);        print(r.bytesDownloaded);        GameObject[] game = r.assetBundle.LoadAllAssets<GameObject>();        print(game.Length);        for (int i = 0; i < game.Length; i++)        {            GameObject ee = Instantiate(game[i]) as GameObject;            ee.name = "123";        }    }



AssetBundle打包工具为Github开源项目:AssetBundleBrowser

原创粉丝点击