91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 40KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-17
  • 語言: 其他
  • 標簽:

資源簡介

Unity的AssetBundle模塊差異化打包工具,主要目的用于節省AssetBundle打包時間

資源截圖

代碼片段和文件信息

using?UnityEngine;
using?UnityEditor;
using?System.Collections;
using?System.Collections.Generic;
using?System.IO;
using?System.Linq;
using?System.Security.Cryptography;
using?System;
using?System.xml;
using?System.Text;

///?
///?unity5版本資源assetsbundle打包工具[強制更新的資源打包]
///?

public?class?AssetsBundleTool?:?EditorWindow
{
????const?string?notification?=?“1platform.2output?dir.3build.“;
????static?string?m_RootDirectory?=?““;
????//static?string?m_RootUnforce?=?““;
????static?string?mLastVersion?=?““;
????static?string?mVersion?=?““;
????static?string?mLog?=?““;
????static?TargetPlatform?m_TargetPlatform?=?TargetPlatform.StandaloneWindow;
????static?string?m_Assets?=?“Assets/AssetData“;

????static?AssetsBundleTool?window;
????static?AssetBundleManifest?mAssetBundleManifest;

????static?List?allDeps?=?new?List();//存放被依賴的資源

????static?Dictionary?mCacheAssetBund;
????static?Dictionary?mPath2ABName;

????static?StringBuilder?mStringBuilder?=?new?StringBuilder();

????public?enum?TargetPlatform?:?int
????{
????????StandaloneWindow?=?(int)BuildTarget.StandaloneWindows64
????????Android?=?(int)BuildTarget.Android
????????IOS?=?(int)BuildTarget.iOS
????}
????[MenuItem(“Editor/資源打包/BuildAssetBundle?&M“)]
????static?void?CallBuildWindow()
????{
????????window?=?EditorWindow.GetWindow();
????????window.maxSize?=?new?Vector2(805f?1000f);
????????window.minSize?=?new?Vector2(805f?500f);
????????window.titleContent?=?new?GUIContent(“資源打包工具“);

????????window.autoRepaintOnSceneChange?=?true;
????????m_TargetPlatform?=?TargetPlatform.StandaloneWindow;

????????if?(string.IsNullOrEmpty(m_RootDirectory))
????????{
????????????m_RootDirectory?=?Application.persistentDataPath?+?“/AssetBundle/“?+?m_TargetPlatform.ToString();//強制資源的輸出路徑
????????}
????????//m_RootUnforce?=?Application.dataPath?+?“/../../AssetBundle/unforce/“?+m_TargetPlatform.ToString();//非強制資源的輸出路徑

????????//xmlName?=?“UnforceStandaloneWindowxml.xml“;
????????GetSVNResversion();
????}
????static?void?GetSVNResversion()
????{
????????mCacheAssetBund?=?new?Dictionary();

????????var?cachePath?=?Application.persistentDataPath?+?“/“?+?GetPlatformFloder()?+?“_AssetBundleCache.xml“;
????????string?cachetext?=?string.Empty;
????????if?(File.Exists(cachePath))
????????{
????????????using?(FileStream?fs?=?new?FileStream(cachePath?FileMode.Open))
????????????{
????????????????int?fsLen?=?(int)fs.Length;
????????????????byte[]?heByte?=?new?byte[fsLen];
????????????????//int?r?=?fs.Read(heByte?0?heByte.Length);
????????????????fs.Read(heByte?0?heByte.Length);
????????????????cachetext?=?System.Text.Encoding.UTF8.GetString(heByte);
????????????}
????????}

????????if?(cachetext?!=?string.Empty)
????????{
????????????//??mCacheAssetBund?=?new?Dictionary();
????????????xmlDocument?xml?=?new?xmlDocument();
????????????xml.Loadxml(cachetext);
????????????xmlNode?node?=?x

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\
?????文件??????????66??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\.gitattributes
?????目錄???????????0??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\
?????文件?????????213??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\AssetData.meta
?????目錄???????????0??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\AssetData\
?????文件?????????213??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\AssetData\material.meta
?????目錄???????????0??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\AssetData\material\
?????文件????????1991??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\AssetData\material\Mat.mat
?????文件?????????229??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\AssetData\material\Mat.mat.meta
?????文件?????????213??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\AssetData\prefab.meta
?????目錄???????????0??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\AssetData\prefab\
?????文件????????2733??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\AssetData\prefab\cube.prefab
?????文件?????????231??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\AssetData\prefab\cube.prefab.meta
?????文件?????????213??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\Editor.meta
?????目錄???????????0??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\Editor\
?????文件?????????213??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\Editor\AssetBundle.meta
?????目錄???????????0??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\Editor\AssetBundle\
?????文件?????????191??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\Editor\AssetBundle\AssetBundleEditor.meta
?????目錄???????????0??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\Editor\AssetBundle\AssetBundleEditor\
?????文件???????47048??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\Editor\AssetBundle\AssetBundleEditor\AssetsBundleTool.cs
?????文件?????????284??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\Editor\AssetBundle\AssetBundleEditor\AssetsBundleTool.cs.meta
?????文件?????????213??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\Scene.meta
?????目錄???????????0??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\Scene\
?????文件????????9086??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\Scene\Test.unity
?????文件?????????196??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\Scene\Test.unity.meta
?????文件?????????213??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\scripts.meta
?????目錄???????????0??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\scripts\
?????文件???????11327??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\scripts\AssetLoad.cs
?????文件?????????284??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\scripts\AssetLoad.cs.meta
?????文件????????2821??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\scripts\IAssetBundleManifest.cs
?????文件?????????284??2018-06-26?09:32??UnityAssetBundleBuildDiff-master\Assets\scripts\IAssetBundleManifest.cs.meta
............此處省略19個文件信息

評論

共有 條評論