• 大小: 5.3MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-11
  • 语言: 其他
  • 标签: unity  

资源简介

工具为Unity中assetBundle打包工具,简单灵活,使用与新手操作

资源截图

代码片段和文件信息

using System.Collections.Generic;
using UnityEditor;
using UnityEditor.IMGUI.Controls;

namespace UnityEngine.AssetBundles
{

    public class AssetBundleBrowserMain : EditorWindow IHasCustomMenu ISerializationCallbackReceiver
    {

        public const float kButtonWidth = 150;

        enum Mode
        {
            Browser
            Builder
            Inspect
        }
        [SerializeField]
        Mode m_Mode;

        [SerializeField]
        int m_DataSourceIndex;

        [SerializeField]
        public AssetBundleManageTab m_ManageTab;

        [SerializeField]
        public AssetBundleBuildTab m_BuildTab;

        [SerializeField]
        public AssetBundleInspectTab m_InspectTab;

        private Texture2D m_RefreshTexture;

        const float k_ToolbarPadding = 15;
        const float k_MenubarPadding = 32;

        [MenuItem(“Window/AssetBundle Browser“ priority = 2050)]
        static void ShowWindow()
        {
            var window = GetWindow();
            window.titleContent = new GUIContent(“AssetBundles“);
            window.Show();
        }

        [SerializeField]
        public bool multiDataSource = false;
        List m_DataSourceList = null;
        public virtual void AddItemsToMenu(GenericMenu menu)
        {
            menu.AddItem(new GUIContent(“Custom Sources“) multiDataSource FlipDataSource);
        }
        public void FlipDataSource()
        {
            multiDataSource = !multiDataSource;
        }

        private void OnEnable()
        {

            Rect subPos = GetSubWindowArea();
            if(m_ManageTab == null)
                m_ManageTab = new AssetBundleManageTab();
            m_ManageTab.OnEnable(subPos this);
            if(m_BuildTab == null)
                m_BuildTab = new AssetBundleBuildTab();
            m_BuildTab.OnEnable(subPos this);
            if (m_InspectTab == null)
                m_InspectTab = new AssetBundleInspectTab();
            m_InspectTab.OnEnable(subPos this);

            m_RefreshTexture = EditorGUIUtility.FindTexture(“Refresh“);
            
            InitDataSources();
        } 
        private void InitDataSources()
        {
            //determine if we are “multi source“ or not...
            multiDataSource = false;
            m_DataSourceList = new List();
            foreach (var info in AssetBundleDataSource.ABDataSourceProviderUtility.CustomABDataSourceTypes)
            {
                m_DataSourceList.AddRange(info.GetMethod(“CreateDataSources“).Invoke(null null) as List);
            }
             
            if (m_DataSourceList.Count > 1)
            {
                multiDataSource = true;
                if (m_DataSourceIndex >= m_DataSourceList.Count)
                    m_DataSourceIndex = 0;
                AssetBundleModel.Model.DataSource = m_DataSourceList[m_DataSourceIndex];

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    .......        64  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\.gitignore

    .......      1075  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\LICENSE

    .......     10666  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\MANUAL.md

    .......      1629  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\README.md

    .......      8073  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\AssetBundleBrowserMain.cs

    .......     18682  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\AssetBundleBuildTab.cs

    .......      1045  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\AssetBundleDataSource\ABDataSource.cs

    .......      1267  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\AssetBundleDataSource\ABDataSourceProvider.cs

    .......      2563  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\AssetBundleDataSource\AssetDatabaseABDataSource.cs

    .......     10103  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\AssetBundleManageTab.cs

    .......     30089  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\AssetBundleModel\ABModel.cs

    .......      8889  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\AssetBundleModel\ABModelAssetInfo.cs

    .......     33472  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\AssetBundleModel\ABModelBundleInfo.cs

    .......     26203  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\AssetBundleTree.cs

    .......     16407  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\AssetListTree.cs

    .......      5729  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\BundleDetailList.cs

    .......      1499  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\Icons\ABundleBrowserIconY1756Basic.png

    .......      1617  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\Icons\ABundleBrowserIconY1756Scene.png

    .......     10931  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\InspectTab\AssetBundleInspectTab.cs

    .......      1813  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\InspectTab\AssetBundleRecord.cs

    .......      2356  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\InspectTab\InspectSingleBundle.cs

    .......      1739  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\InspectTab\InspectTreeView.cs

    .......      4241  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\MessageList.cs

    .......      7717  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\AssetBundleBrowser\MessageSystem.cs

    .......     30839  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\Tests\ABModelTests.cs

    .......       741  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\Tests\AssetBundleRecordTests.cs

    .......      1734  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\Tests\Util\ABModelUtil.cs

    .......      2085  2017-09-19 22:54  MyPlugins\AssetBundles-Browser-master\AssetBundles-Browser-master\UnityEngine.AssetBundles\Editor\Tests\Util\TestUtil.cs

     文件      63105  2017-11-25 14:40  MyPlugins\AssetBundles-Browser-master.zip

     文件    5525619  2017-11-25 14:41  MyPlugins\Bundle Manager.unitypackage

............此处省略15个文件信息

评论

共有 条评论