Ejemplo n.º 1
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();
 }
Ejemplo n.º 2
0
 private void DrawAssetBundleManager()
 {
     EditorGUILayout.PropertyField(m_ShowAssets);
     EditorGUILayout.PropertyField(m_ShowDependencies);
     EZBundleManager.DrawAssetBundleManager((AssetsViewOption)m_ShowAssets.enumValueIndex, (BundleDependenciesViewOption)m_ShowDependencies.enumValueIndex);
 }