排列三交叉跨度走势:buildpipeline.popassetdependencies 弹出资源依赖

排列三2014079期正版藏机图 www.d0po.cn 2015-1-3 22:47| 发布者: 杨炎| 查看: 2637| 评论: 0|原作者: 蛮牛|来自: unity3d脚本manual

摘要: buildpipeline.popassetdependencies 弹出资源依赖static functionpopassetdependencies() : voiddescription描述lets you manage cross-references and dependencies between different asset bundles and player b ...

buildpipeline.popassetdependencies 弹出资源依赖

static functionpopassetdependencies() : void

description描述

lets you manage cross-references and dependencies between different asset bundles and player builds.

让你管理交叉引用和不同资源包和播放器构建之间的依赖关系。

if a asset bundle has dependencies to other asset bundles, it is your responsibility to make sure the dependent asset bundles are loaded through thewwwclass.

如果一个资源包与另外的资源包存在依赖关系, 你必须确定依赖的资源包通过www类加载。

when you push asset dependencies it will share all resources on that layer, pushing recursively always inherits the previous dependencies.pushassetdependenciesandpopassetdependenciesmust even each other out.

当你使资源具有依赖属性, 它将在层上共享所有资源, 推入递归总是继承以前的依赖性关系。pushassetdependencies和popassetdependencies必须相互依赖。

@menuitem("assets/auto build asset bundles")

static function exportresource () {

// enable cross-references for all following asset bundles files until

// we call popassetdependencies

//启用交叉引用,用于所有跟随的资源包文件,直到我们调用popassetdependencies

buildpipeline.pushassetdependencies();

var options =

buildassetbundleoptions.collectdependencies|

buildassetbundleoptions.completeassets;

// all subsequent resources share assets in this asset bundles

// it is up to you to ensure that the shared asset bundle is

// loaded prior to loading other resources

//所有后续资源将共享这一资源包中的内容,由你来确保共享的资源包是否在其他资源载入之前载入

buildpipeline.buildassetbundle(

assetdatabase.loadmainassetatpath("assets/artwork/lerpzuv.tif"),

null, "shared.unity3d", options);

// by pushing and popping around the asset bundle, this file

// will share resources but later asset bundles will not share assets in this resource

//通过推入和弹出资源包,这个文件将共享这些资源,但是后续的资源包将无法继续共享它

buildpipeline.pushassetdependencies();

buildpipeline.buildassetbundle(

assetdatabase.loadmainassetatpath("assets/artwork/lerpz.fbx"),

null, "lerpz.unity3d", options);

buildpipeline.popassetdependencies();

// by pushing and popping around the asset bundle, this file

// will share resources but later asset bundles will not share assets in this resource

//通过推入和弹出资源包,这个文件将共享这些资源,但是后续的资源包将无法继续共享它

buildpipeline.pushassetdependencies();

buildpipeline.buildassetbundle(

assetdatabase.loadmainassetatpath("assets/artwork/explosive guitex.prefab"),

null, "explosive.unity3d", options);

buildpipeline.popassetdependencies();

// by pushing and popping around the asset bundle, this file

// will share resources but later asset bundles will not share assets in this resource

//通过推入和弹出资源包,这个文件将共享这些资源,但是后续的资源包将无法继续共享它

buildpipeline.pushassetdependencies();

buildpipeline.buildplayer(

["assets/additivescene.unity"], "additivescene.unity3d",

buildtarget.webplayer, buildoptions.buildadditionalstreamedscenes);

buildpipeline.popassetdependencies();

buildpipeline.popassetdependencies();

}

参见:popassetdependencies,buildassetbundle.

相关阅读

文章点评
相关文章
  • 您访问的页面找不回来了 2019-04-07
  • 五莲科技局以“三大”助力动能转换 2019-04-07
  • 匹夫有责之一百一十二—道义大义的博客—强国博客—人民网 2019-03-30
  • 守住青山不放松 护好绿水不辞难——在渝全国人大代表聚焦“共抓大保护、不搞大开发”专题调研记略 2019-03-28
  • 经营者要想“我心换你心”,就要未雨绸缪,让不诚信的诱惑少一点,如此才能在市场中生存下来。反过来说,承担不起亏损就关门歇业,是否也是一种不诚信呢? 2019-03-21
  • 追风上市公司“跌落神坛”-热门标签-华商网数码 2019-03-21
  • 文化艺术交易场所沙龙第一期活动在京顺利举行 2019-03-16
  • 看把你高兴的屁颠屁颠的,光有赞有什么用?我给你个货真价实的 [大红包]。 2019-03-16
  • 候选企业:中国石油呼和浩特石化公司 2019-02-22
  • 我国纳米核心技术取得重大突破 2019-02-22
  • 北京:端午节民俗地图  小枣粽——竹叶红枣糯糯情  2019-01-26
  • 机器人送快递将在西安试点 识别红绿灯还能“车让人” 2019-01-26
  • 首批限竞房正式入市 戳三大盘看详情! ——凤凰网房产北京 2018-12-09
  • 世界杯频爆冷门网友大呼“天台见”!警方:不要冲动,不要跳楼 2018-08-21
  • 始终如一的是:美国优先。 2018-08-21
  • 421| 937| 781| 98| 582| 468| 493| 682| 214| 432|