fgm24/Assets/Scripts/PathFinding/NavMeshComponents/Editor/AgentOverride2dEditor.cs

36 lines
1.1 KiB
C#
Raw Normal View History

2024-02-02 23:21:12 +01:00
using NavMeshPlus.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEditor;
namespace NavMeshPlus.Editors.Extensions
{
[CanEditMultipleObjects]
[CustomEditor(typeof(AgentOverride2d))]
internal class AgentOverride2dEditor : Editor
{
//SerializedProperty m_OverrideByGrid;
//SerializedProperty m_UseMeshPrefab;
//SerializedProperty m_CompressBounds;
//SerializedProperty m_OverrideVector;
void OnEnable()
{
//m_OverrideByGrid = serializedObject.FindProperty("m_OverrideByGrid");
//m_UseMeshPrefab = serializedObject.FindProperty("m_UseMeshPrefab");
//m_CompressBounds = serializedObject.FindProperty("m_CompressBounds");
//m_OverrideVector = serializedObject.FindProperty("m_OverrideVector");
}
public override void OnInspectorGUI()
{
serializedObject.Update();
var agent = target as AgentOverride2d;
EditorGUILayout.LabelField("Agent Override", agent.agentOverride?.GetType().Name);
}
}
}