private void CommitChanges(bool openEditor)
        {
            if (isNewMaterial)
            {
                if (!AssetDatabase.IsValidFolder("Assets/BattleDrakeStudios/ModularCharacterEditor/Materials"))
                {
                    AssetDatabase.CreateFolder("Assets/BattleDrakeStudios/ModularCharacterEditor", "Materials");
                }
                AssetDatabase.CreateAsset(characterMat, "Assets/BattleDrakeStudios/ModularCharacterEditor/Materials/" + materialName + ".mat");
            }


            if (isExistingCharacter)
            {
                characterManager.SetupExistingCharacter(characterGender, characterMat);
            }
            else
            {
                characterManager.SetupNewCharacter(characterGender, characterMat);
            }

            if (openEditor)
            {
                ModularCharacterEditor.ShowWindow();
            }

            isExistingCharacter = false;
            isNewMaterial       = false;
        }
        public static void ShowWindow()
        {
            ModularCharacterEditor editorWindow = EditorWindow.GetWindow <ModularCharacterEditor>();

            editorWindow.titleContent = new GUIContent("Modular Character Editor");
            editorWindow.Show();
        }