mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 17:47:38 +02:00
Editor: Tempo finder tweaks
This commit is contained in:
20
Assets/Editor/TempoFinderButtonEditor.cs
Normal file
20
Assets/Editor/TempoFinderButtonEditor.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user