void DrawAssetBundleDispatcherInspector() { if (GUILayoutUtils.DrawHeader("AssetBundle Dispatcher : ", inspectorSate, "DispatcherConfig", true, false)) { DrawAssetDispatcherConfig(); } }
protected void OnDrawAssetCaching() { var instance = AssetBundleManager.Instance; var assetCaching = instance.GetAssetCaching(); var totalCount = instance.GetAssetCachingCount(); var iter = assetCaching.GetEnumerator(); EditorGUILayout.BeginVertical(); GUILayoutUtils.DrawProperty("Total loaded assets count : ", totalCount.ToString()); while (iter.MoveNext()) { var assetbundleName = iter.Current.Key; var assetNameList = iter.Current.Value; string title = string.Format("{0}[{1}]", assetbundleName, assetNameList.Count); if (GUILayoutUtils.DrawHeader(title, abItemSate, assetbundleName, false, false)) { GUILayoutUtils.DrawTextListContent(assetNameList); } } EditorGUILayout.EndVertical(); }
protected void DrawAssetbundleItem(string title, string assetbundleName, Dictionary <string, bool> states, string key, int level = 0) { var instance = AssetBundleManager.Instance; if (instance.IsAssetBundleLoaded(assetbundleName)) { title += "[loaded]"; } if (level == 0) { if (GUILayoutUtils.DrawHeader(title, states, key, false, false)) { DrawAssetbundleContent(assetbundleName, key, level); } } else { if (GUILayoutUtils.DrawSubHeader(level, title, states, key, "")) { DrawAssetbundleContent(assetbundleName, key, level + 1); } } }