﻿#if UNITY_EDITOR
using UnityEngine;
using UnityEditor;

namespace JLGames.RocketDriver.Actions.Loaderx
{
    [CustomPropertyDrawer(typeof(BundleCache), true)]
    public class BundleCacheDrawer : PropertyDrawer
    {
        public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
        {
            EditorGUI.PropertyField(position, property.FindPropertyRelative("m_CacheName"));
//            EditorGUI.PropertyField(position, property.FindPropertyRelative("m_VersionSize"));
//            EditorGUI.PropertyField(position, property.FindPropertyRelative("m_HistorySize"));
//            EditorGUILayout.PropertyField(property.FindPropertyRelative("m_CacheName"));
            EditorGUILayout.PropertyField(property.FindPropertyRelative("m_VersionSize"));
            EditorGUILayout.PropertyField(property.FindPropertyRelative("m_HistorySize"));
        }
    }
}

#endif