﻿#if UNITY_EDITOR
using UnityEditor;

namespace JLGames.RocketDriver.Actions.Loaderx
{
    [CustomEditor(typeof(ResourceSettings), true)]
    class ResourceSettingsEditor : Editor
    {
        SerializedProperty m_Properties;

        private void OnEnable()
        {
            m_Properties = serializedObject.FindProperty("m_Properties");
        }

        public override void OnInspectorGUI()
        {
            EditorGUILayout.LabelField("Properties(属性)：", EditorStyles.boldLabel);
            EditorGUI.indentLevel++;
            EditorGUILayout.PropertyField(m_Properties);
            EditorGUILayout.LabelField($"Note:The above path is a relative path related to Resources!", EditorStyles.largeLabel);
            EditorGUILayout.LabelField($"注意:以上路径为与Resources相关的相对路径！", EditorStyles.largeLabel);
            EditorGUI.indentLevel--;
            serializedObject.ApplyModifiedProperties();
        }
    }
}
#endif