/// <summary>
 /// <see cref="Editor.OnInspectorGUI" />
 /// </summary>
 override public void OnInspectorGUI()
 {
     serializedObject.Update();
     EditorGUILayout.BeginVertical(GetStyle("inspector"));
     DeploymentInfoEditor.OnInspectorGUI(serializedObject.FindProperty("m_DeploymentInfo"));
     ServerInfoEditor.OnInspectorGUI(serializedObject.FindProperty("m_ServerInfo"));
     EditorGUILayout.EndVertical();
     serializedObject.ApplyModifiedProperties();
 }
        /// <summary>
        /// Updates the <see cref="AssetBundleMap" /> asset.
        /// </summary>
        public static AssetBundleMap UpdateAssetBundleMap()
        {
            EditorUtility.DisplayProgressBar(
                "UpdateAssetBundleMap",
                "Finding asset bundle map...",
                0
                );

            var serializedObject = new SerializedObject(FindOrCreateAssetBundleMap());

            EditorUtility.DisplayProgressBar(
                "UpdateAssetBundleMap",
                "Updating deployment info...",
                0.5f
                );
            {
                var property = serializedObject.FindProperty("m_DeploymentInfo");
                var list     = DeploymentInfoEditor.GetList(property);
                DeploymentInfoEditor.SetList(property, list);
            }

            EditorUtility.DisplayProgressBar(
                "UpdateAssetBundleMap",
                "Updating server info...",
                1
                );
            {
                var property = serializedObject.FindProperty("m_ServerInfo");
                var list     = ServerInfoEditor.GetList(property);
                ServerInfoEditor.SetList(property, list);
            }
            serializedObject.ApplyModifiedProperties();

            EditorUtility.ClearProgressBar();

            return(FindAssetBundleMap());
        }
 public static bool Foldout(string foldoutKey, string label, GUIStyle style = null)
 {
     return(DeploymentInfoEditor.Foldout(foldoutKey, label, style));
 }