public override void OnInspectorGUI()
    {
        serializedObject.Update();

        if (_generator.CanGenerate())
        {
            EditorGUILayout.PropertyField(_heightMapGenerator);
            EditorGUILayout.PropertyField(_heightScale);
            EditorGUILayout.PropertyField(_biomeGenerator);
            _generator.biomeTexture = (Texture2D)EditorGUILayout.ObjectField("Biome Texture", _generator.biomeTexture, typeof(Texture2D), true);
            if (GUILayout.Button("Generate"))
            {
                _generator.Setup();
                _generator.Generate();
            }
        }
        else
        {
            ShowMissingGenRequirements();
        }
        if (GUILayout.Button("Export Map Texture"))
        {
            Texture2D tex      = _generator.biomeTexture;
            string    fileName = Application.persistentDataPath + "/" + tex.name + ".png";
            File.WriteAllBytes(fileName, tex.EncodeToPNG());
            Debug.Log("Saved to " + fileName);
        }

        serializedObject.ApplyModifiedProperties();
    }