Editor: Tempo finder tweaks

This commit is contained in:
Jenny Crowe
2022-02-24 21:30:02 -07:00
parent 3b7d328c05
commit 68bb30ae2a
7 changed files with 90 additions and 20 deletions

View File

@ -0,0 +1,20 @@
using UnityEditor;
using UnityEditor.UI;
using UnityEngine;
using RhythmHeavenMania;
namespace RhythmHeavenMania.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();
}
}
}