1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using System;
- using System.Collections.Generic;
- using UnityEditor;
- using UnityEngine;
- namespace GFGEditor
- {
- [CreateAssetMenu(menuName = "GFGAsset/AssetBundleCollector", fileName = "AssetBundleCollector")]
- public class AssetBundleCollector : ScriptableObject
- {
- public List<AssetBundleAssetList> assetBundleAssetLists = new List<AssetBundleAssetList>();
-
- public static AssetBundleCollector GetData()
- {
- string filePath = "Assets/GFGAsset/AssetBundleCollector.asset";
- var t = AssetDatabase.LoadAssetAtPath<AssetBundleCollector>(filePath);
- if (t == null)
- {
- t = new AssetBundleCollector();
- AssetDatabase.CreateAsset(t, filePath);
- }
- return t;
- }
- }
- [Serializable]
- public class AssetBundleAssetList
- {
- public string dir;
- public int status;
- public long bytes;
- public List<AssetBundleAssetListItem> list;
- }
- [Serializable]
- public class AssetBundleAssetListItem
- {
- public string key;
- public long bytes;
- public List<string> list;
- }
- }
|