21 lines
795 B
C#
21 lines
795 B
C#
using NavMeshPlus.Components.Editors;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
//***********************************************************************************
|
|
// Contributed by author jl-randazzo github.com/jl-randazzo
|
|
//***********************************************************************************
|
|
namespace NavMeshPlus.Extensions.Editors
|
|
{
|
|
[CustomPropertyDrawer(typeof(NavMeshAreaAttribute))]
|
|
public class NavMeshAreaAttributePropertyDrawer : PropertyDrawer
|
|
{
|
|
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
|
|
{
|
|
NavMeshComponentsGUIUtility.AreaPopup(position, label.text, property);
|
|
}
|
|
|
|
public override float GetPropertyHeight(SerializedProperty property, GUIContent label) => 20;
|
|
}
|
|
}
|