Assetbundle api试验
----打包选项试验
--------结论:BuildAssetBundleOptions说明:
------------None: 把所有以来资源到到一个包里
------------UncompressedAssetBundle:不压缩
------------DisableWriteTypeTree:禁止写入类型信息, 在webplayer中不可用
------------DeterministicAssetBundle:使得每次build后hash保持不变,否则可能会变, 但在此资源数据进行改动时一定会变
------------ForceRebuildAssetBundle:强制重建,即使asset没有改变
------------IgnoreTypeTreeChanges:忽略typetree的变化
------------AppendHashToAssetBundleName:把hash添加在assetbundle name后面,也就是生成的assetbundle的文件名会变成这样:resources_df9f1195a8b236dac4c15bd5ac1411e6
------------ChunkBasedCompression:使用LZ4压缩。 允许加载的时候实时解压
------------StrictMode: 有任何错误就算失败,如果并没有此选项,只有出现重大错误比如shader在对应平台编译不过时才失败
------------DryRunBuild:不会真正的build资源, 但是BuildPipeline.BuildAssetBundles可以正确的返回
------------DisableLoadAssetByFileName:禁用通过文件名加载asset。通常有三种方式加载asset:通过全路径,通过文件名,通过文件名.扩展名。 全路径是在生成ab的是写入的, 另外两个是在加载的时候得到的。
------------DisableLoadAssetByFileNameWithExtension:禁用通过文件名.扩展名加载asset。
----打包api调用试验:
--------相关api:
------------BuildPipeline.BuildAssetBundles(目标路径"Assets/ABs", AssetBundleBuild[] buildMap);
------------AssetBundleBuild 一个bundle的设置
--------------------------------包括:输出文件民(bundlename), 扩展名,包含的文件列表
--------步骤:
------------1 填充AssetBundleBuild[]
------------2 执行BuildPipeline.BuildAssetBundles
--------试验结论:
------------每调用一次BuildPipeline.BuildAssetBundles, 会根据当前AssetBundleBuild[]里所有项打包,
------------如果有依赖关系,会单独打包,比如item1 依赖item2,则会单独打2个包,item1中不包含item2的数据, 如果列表中指包含item1,则会把item2的数据也打入到item1
------------如果多次调用BuildPipeline.BuildAssetBundles,每次会单独处理,不会有干扰。

Unity5 assetbundle笔记的更多相关文章

  1. Unity5 AssetBundle系列——基本流程

    Unity5的AssetBundle修改比较大,所以第一条建议是:忘掉以前的用法,重新来!要知道,Unity5已经没办法加载2.x 3.x的bundle包了…体会一下Unity5 AssetBundl ...

  2. Unity5 AssetBundle系列——简单的AssetBundleManager

    一个AssetBundle同时只能加载一次,所以实际使用中一般会伴随着AssetBundle包的管理. 下面是一个简单的AssetBundle管理器,提供了同步和异步加载函数: using Unity ...

  3. Unity5 AssetBundle资源管理架构设计

    http://blog.csdn.net/qq_19399235/article/details/51702964 1:Unity5 资源管理架构设计(2017.4.22版本) 2:Android 热 ...

  4. Unity AssetBundle笔记

    1.入门: Resources:表示U3D自动将资源打成一个AssetBundle包,所有放在Resources下的文件夹都会打成一个AssetBundle包,资源非常大,Resources文件夹在真 ...

  5. Unity5 AssetBundle

    设置assetBundleName AssetImporter importer = AssetImporter.GetAtPath(p); importer.assetBundleName = x; ...

  6. Unity5 AssetBundle 打包以及加载

    using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEditor; us ...

  7. Unity5 AssetBundle系列——资源加载卸载以及AssetBundleManifest的使用

    下面代码列出了对于assetbundle资源的常用操作,其中有针对bundle.asset.gameobject三种类型对象的操作,实际使用中尽量保证成对使用. 这一块的操作比较繁琐,但只要使用正确, ...

  8. Unity5 AssetBundle打包加载及服务器加载

    Assetbundle为资源包不是资源 打包1:通过脚本指定打包 AssetBundleBuild ab = new AssetBundleBuild                         ...

  9. [原]unity5 AssetBundle打包

    本文unity版本5.1.3 一.现有的打包教程: 1.http://liweizhaolili.blog.163.com/blog/static/16230744201541410275298/ 阿 ...

随机推荐

  1. My Upload.com product submission has been approved

     This morning I got to know that My product DB Query Analyzer had been appoved by upload.com, which ...

  2. org/w3c/dom/ElementTraversal 错误解决办法

    org/w3c/dom/ElementTraversal 错误解决办法 不记得之前几天把什么maven依赖包删除了,今天利用htmlunit运行代码的时候报了下面的错误: Exception in t ...

  3. python面向对象小练习

    就是几个动物,自动排列生成什么的 class Animal(object): def __init__(self,name,weight): self.name = name self.weight ...

  4. Matlab R2013a: C++ MEX on Ubuntu 14.04 64-bit

    原文地址: http://blogs.bu.edu/mhirsch/2013/07/matlab-r2013a-mex-on-ubuntu-13-04-64-bit/ Note: the way Me ...

  5. 网站开发进阶(二十一)Angular项目信息错位显示问题解决

    Angular项目信息错位显示问题解决 绪 最近在项目开发过程中遇到这样一个棘手的问题:查询出所有订单信息后,点击选择某一个订单,查询出的结果是上一次查询所得的结果.而且会出现点击两次才可以显示订单详 ...

  6. 【一天一道LeetCode】 #3 Longest Substring Without Repeating Characters

    一天一道LeetCode (一)题目 Given a string, find the length of the longest substring without repeating charac ...

  7. LeetCode之“字符串”:最长回文子串

    题目要求: 给出一个字符串(假设长度最长为1000),求出它的最长回文子串,你可以假定只有一个满足条件的最长回文串.例如,给出字符串 "abcdzdcab",它的最长回文子串为 & ...

  8. 第一个Polymer应用 - (0)准备工作

    原文链接:  Getting Started - Your first Polymer application翻译时间: 2014年7月5日翻译人员: 铁锚 关于Polymer 的简介,请参考 CSD ...

  9. Linux查询已开启文件或已运行进程开启之文件fuser,lsof,pidof

    fuser:藉由文件(或文件系统)找出正在使用该文件的程序 [root@www ~]# fuser [-umv] [-k [i] [-signal]] file/dir 选项与参数: -u :除了进程 ...

  10. 在Mac OS X下搭建gtk编译环境

    首先安装 XQuartz X11 for Mac ,可以到这里下载: http://xquartz.macosforge.org/landing/ 需要一个包管理器,我用的是brew,其他的操作类似: ...