You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mapbox-sdk/Unity/Editor/FeatureBehaviourEditor.cs

27 lines
464 B

6 months ago
namespace Mapbox.Editor
{
using UnityEngine;
using UnityEditor;
using Mapbox.Unity.MeshGeneration.Components;
[CustomEditor(typeof(FeatureBehaviour))]
public class FeatureBehaviourEditor : Editor
{
FeatureBehaviour _beh;
public void OnEnable()
{
_beh = (FeatureBehaviour)target;
}
public override void OnInspectorGUI()
{
DrawDefaultInspector();
if (GUILayout.Button("Show Properties"))
{
_beh.ShowDebugData();
}
}
}
}