21 lines
554 B
C#
21 lines
554 B
C#
using UnityEditor;
|
|
using UnityEditor.UI;
|
|
using UnityEngine;
|
|
using HeavenStudio;
|
|
|
|
namespace HeavenStudio.Editor
|
|
{
|
|
[CustomEditor(typeof(TempoFinderButton))]
|
|
public class TempoFinderButtonEditor : ButtonEditor
|
|
{
|
|
public override void OnInspectorGUI()
|
|
{
|
|
TempoFinderButton targetButton = (TempoFinderButton)target;
|
|
|
|
targetButton.tempoFinder = (TempoFinder)EditorGUILayout.ObjectField("Tempo Finder", targetButton.tempoFinder, typeof(TempoFinder), true);
|
|
|
|
base.OnInspectorGUI();
|
|
}
|
|
}
|
|
}
|