3d体彩排列三开奖结果今天:buildpipeline.popassetdependencies 弹出资源依赖

排列三2014079期正版藏机图 www.d0po.cn 2015-1-3 22:47| 发布者: 杨炎| 查看: 2762| 评论: 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-06-26
  • [大红包]——有神论者是客观唯心主义派别的三种世界观。无神论者是主观唯心主义、客观唯物主义和主观唯物主义三个派别的九种世界观!!!! 2019-06-26
  • 兰州彩民收获2018年度甘肃首枚七乐彩头奖 2019-06-19
  • 人民日报人民时评:前进的时代需要英雄 2019-06-18
  • 境外媒体:中国商务部严批美方“反复无常,挑起贸易战” 2019-06-16
  • 水银、煮沸的蚁巢、热熨斗:欧洲人的梅毒抗争史 2019-06-03
  • 咨询成果推介泸州长江生态湿地新城概念性规划 2019-06-03
  • 黄河口,大美之诗文章中国国家地理网 2019-05-30
  • 【人事】中共临汾市委组织部公示3名拟任职干部 2019-05-18
  • 习近平与人民日报那些事 2019-05-10
  • 很多常用药同属一家族 2019-04-30
  • 小牛犊天生两条腿 走起路来像袋鼠 2019-04-30
  • 就因为“阶级亲”,才应把这些难民送到欧洲。欧洲生活水平高呀,让亲人生活的更好。不能让他们到中国受苦受难呀。 2019-04-27
  • 资管新规来了!打破刚兑  投资者怎么办? 2019-04-27
  • 紫光阁中共中央国家机关工作委员会 2019-04-24
  • 河南快赢481今天开奖走势图 曾道人攻略图 3d试机号080历史记录 中国体彩网七位数开奖 2012福利彩票走势图 贵州快3昨日开奖结果 快乐赛车是正规福彩吗 15选5玩法技巧 江苏11选5任三最大遗漏 湖南彩票定制开发多少钱 梦见抓到大奖 四川体育彩票走势图 七乐彩杀码 凤凰论坛两码中特 福彩25选5开奖视频