using System;
using UnityEditor;
using UnityEngine;

[TypeDrawer]
public class Vector4TypeDrawer : ITypeDrawer
{
    public bool HandlesType(Type type, object value)
    {
        return type == typeof(Vector4);
    }

    public object DrawAndGetNewValue(Type memberType, string memberName, object value, object target)
    {
        return EditorGUILayout.Vector4Field(memberName, (Vector4)value);
    }

    public void Destroy()
    {
    }
}