﻿#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;

namespace JLGames.RocketDriver.Actions.Loaderx
{
    [CustomPropertyDrawer(typeof(BundleSourceWeb), true)]
    class BundleSourceWebDrawer : PropertyDrawer
    {
        public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
        {
            EditorGUI.PropertyField(position, property.FindPropertyRelative("m_WebglDynamicUrl"));
//            EditorGUI.PropertyField(position, property.FindPropertyRelative("m_WebSiteUrl"));
//            EditorGUI.PropertyField(position, property.FindPropertyRelative("m_WebSitePattern"));
//            EditorGUILayout.PropertyField(property.FindPropertyRelative("m_WebglDynamicUrl"));
            EditorGUILayout.PropertyField(property.FindPropertyRelative("m_WebSiteUrl"));
            EditorGUILayout.PropertyField(property.FindPropertyRelative("m_WebSitePattern"));
        }
    }
}
#endif