14 lines
419 B
C#
Raw Normal View History

2025-08-22 21:31:17 +05:00
using UnityEngine;
using UnityEditor;
namespace UGUIMiniMap
{
[CustomPropertyDrawer(typeof(LayerMaskAttribute))]
public class LayerMaskDrawer : PropertyDrawer
{
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
property.intValue = EditorGUI.LayerField(position, new GUIContent(property.name, ""), property.intValue);
}
}
}