protected override void OnGUI()
 {
     base.OnGUI();
     DrawOptionControllers();
     DrawCollapseControllers();
     scrollPosition = EditorGUILayout.BeginScrollView(scrollPosition);
     foreach (Bundle bundle in bundleDict.Values)
     {
         if (bundle.foldout = EditorGUILayout.Foldout(bundle.foldout, bundle.bundleName))
         {
             EditorGUI.indentLevel++;
             EZBundleManager.DrawStringCollection(showDependencies ? "Assets" : "", bundle.manifest.Assets);
             if (showDependencies)
             {
                 EZBundleManager.DrawStringCollection("Dependencies", bundle.manifest.Dependencies);
             }
             if (bundle.manifest.AssetBundleManifest != null && bundle.manifest.AssetBundleManifest.AssetBundleInfos.Count > 0)
             {
                 foreach (AssetBundleInfo abInfo in bundle.manifest.AssetBundleManifest.AssetBundleInfos.Values)
                 {
                     EditorGUILayout.LabelField(abInfo.Name);
                     if (showDependencies)
                     {
                         EZBundleManager.DrawStringCollection("", abInfo.Dependencies.Values);
                     }
                 }
             }
             EditorGUI.indentLevel--;
         }
         EditorGUILayout.Space();
     }
     EditorGUILayout.EndScrollView();
 }
Example #2
0
 void OnEnable()
 {
     m_BuildTarget                  = serializedObject.FindProperty("buildTarget");
     m_OutputPath                   = serializedObject.FindProperty("outputPath");
     m_ListFileName                 = serializedObject.FindProperty("listFileName");
     m_ManagerMode                  = serializedObject.FindProperty("managerMode");
     m_ForceRebuild                 = serializedObject.FindProperty("forceRebuild");
     m_CopyList                     = serializedObject.FindProperty("copyList");
     m_BundleList                   = serializedObject.FindProperty("bundleList");
     m_CopyListFoldout              = serializedObject.FindProperty("copyListFoldout");
     m_BundleListFoldout            = serializedObject.FindProperty("bundleListFoldout");
     m_ShowAssets                   = serializedObject.FindProperty("showAssets");
     m_ShowDependencies             = serializedObject.FindProperty("showDependencies");
     copyList                       = new ReorderableList(serializedObject, m_CopyList, true, true, true, true);
     copyList.drawHeaderCallback    = DrawCopyListHeader;
     copyList.drawElementCallback   = DrawCopyListElement;
     bundleList                     = new ReorderableList(serializedObject, m_BundleList, true, true, true, true);
     bundleList.drawHeaderCallback  = DrawBundleListHeader;
     bundleList.drawElementCallback = DrawBundleListElement;
     EZBundleManager.Refresh();
 }
Example #3
0
 private void DrawAssetBundleManager()
 {
     EditorGUILayout.PropertyField(m_ShowAssets);
     EditorGUILayout.PropertyField(m_ShowDependencies);
     EZBundleManager.DrawAssetBundleManager((AssetsViewOption)m_ShowAssets.enumValueIndex, (BundleDependenciesViewOption)m_ShowDependencies.enumValueIndex);
 }