Files
EmeraidAI/Runtime/Scripts/Internal/Property Drawers/Editor/LayerAttributeEditor.cs
T
2025-07-20 10:01:29 +08:00

15 lines
381 B
C#

using UnityEditor;
using UnityEngine;
namespace EmeraldAI
{
[CustomPropertyDrawer(typeof(LayerAttribute))]
class LayerAttributeEditor : PropertyDrawer
{
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
property.intValue = EditorGUI.LayerField(position, label, property.intValue);
}
}
}