资源简介
在Asset bundle 打包管理上采用了全新的方式,不需要再对每个文件进行MD5比对,unity已经帮我们做好了,对需要打包的资源AssetBundle属性就行了,同事Unity还提供了一个打包管理工具 Asset Bundle Manager。
代码片段和文件信息
using System;
using System.Collections;
using UnityEngine;
namespace AssetBundles
{
///
/// An asynchronous wrapper for the AssetBundleManager downloading system
///
public class AssetBundleAsync : IEnumerator
{
public AssetBundle AssetBundle;
public bool IsDone { get; private set; }
public bool Failed { get; private set; }
public AssetBundleAsync(string bundleName Action> callToAction)
{
IsDone = false;
callToAction(bundleName OnAssetBundleComplete);
}
public AssetBundleAsync()
{
IsDone = true;
Failed = true;
}
private void OnAssetBundleComplete(AssetBundle bundle)
{
AssetBundle = bundle;
Failed = bundle == null;
IsDone = true;
}
public bool MoveNext()
{
return !IsDone;
}
public void Reset()
{ }
public object Current {
get { return null; }
}
}
///
/// An asynchronous wrapper for the AssetBundleManager manifest downloading system
///
public class AssetBundleManifestAsync : IEnumerator
{
public bool Success { get; private set; }
public bool IsDone { get; private set; }
public AssetBundleManifestAsync(string bundleName Action> callToAction)
{
IsDone = false;
callToAction(bundleName OnAssetBundleManifestComplete);
}
private void OnAssetBundleManifestComplete(AssetBundle bundle)
{
Success = bundle != null;
IsDone = true;
}
public bool MoveNext()
{
return !IsDone;
}
public void Reset()
{ }
public object Current {
get { return null; }
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-08-22 03:57 AssetBundleManager-master\
文件 214 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager.me
文件 2508 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager.sln.DotSettings
文件 175 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager.sln.DotSettings.me
目录 0 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\
文件 1983 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\AssetBundleAsync.cs
文件 86 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\AssetBundleAsync.cs.me
文件 6403 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\AssetBundleDownloader.cs
文件 263 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\AssetBundleDownloader.cs.me
文件 1237 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\AssetBundleDownloaderMonobehaviour.cs
文件 263 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\AssetBundleDownloaderMonobehaviour.cs.me
文件 37 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\AssetBundleManager.asmdef
文件 207 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\AssetBundleManager.asmdef.me
文件 24103 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\AssetBundleManager.cs
文件 263 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\AssetBundleManager.cs.me
文件 3327 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\AssetBundleUtility.cs
文件 263 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\AssetBundleUtility.cs.me
文件 2462 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\EditorCoroutine.cs
文件 263 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\EditorCoroutine.cs.me
文件 192 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\Example.me
目录 0 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\Example\
文件 896 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\Example\Example1.cs
文件 263 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\Example\Example1.cs.me
文件 873 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\Example\Example2.cs
文件 263 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\Example\Example2.cs.me
文件 112 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\ICommandHandler.cs
文件 263 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\ICommandHandler.cs.me
文件 3778 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\StreamingAssetsBundleDownloadDecorator.cs
文件 86 2018-08-22 03:57 AssetBundleManager-master\AssetBundleManager\StreamingAssetsBundleDownloadDecorator.cs.me
文件 1074 2018-08-22 03:57 AssetBundleManager-master\LICENSE
文件 175 2018-08-22 03:57 AssetBundleManager-master\LICENSE.me
............此处省略2个文件信息
相关资源
- Unity 安卓串口收发代码
- Unity Svn 小工具
- Unity下调用摄像头识别二维码
- Loic源码-DDOS/DOS测试
- unity4.x-2017.2.0f03全版本破解windows版本
- obi Softbody
- 空间后方交会求外方位元素
- notepad下的lua配置资源
- Unity路径插件
- UGUI画图脚本RadarChart.unitypackage
- SplineBend物体弯曲调节工具
- Unity在Gamma空间模式Linear渲染的Shader
- 课程里面的unity实验
- Unity3d适配
- Unity鼠标操作平移、旋转、缩放
- flappyBird193199
- 手写签名图片,可保存为图片或到数
- WinRemoteDesktop 简易远程桌面管理工具
- 自动取款机管理系统
- 实现一个界面跳转到另一个界面
- PC与三菱FX系列PLC串口通讯库和exampl
- framwork赛马程序
- unity的最佳伴侣
- unity项目源码 仿dnf demo
- unity-5.2.3安装包
- 2017unity3d 特效资源包大合集
- 网易TA笔试题整理不全 (1).txt
- 由unity3d开发的《最后一战》手游全套
- 14 Arrow Animations1.0--箭头资源包
- unity3D5.x 游戏开发技术详解与典型案例
评论
共有 条评论