Project_WL/Assets/Editor/ButtonPressEditor.cs

17 lines
471 B
C#

#if UNITY_EDITOR
using UnityEditor;
[CustomEditor(typeof(ButtonPress))]
public class ButtonPressEditor : Editor
{
public override void OnInspectorGUI()
{
DrawDefaultInspector(); // 기본 필드 포함
//ButtonPress buttonPress = (ButtonPress)target;
// LongPressDuration을 인스펙터에 추가
//buttonPress.LongPressDuration = EditorGUILayout.FloatField("Long Press Duration", buttonPress.LongPressDuration);
}
}
#endif