using vnxbqy.UI; using UnityEditor; [CustomEditor(typeof(LongPressButton), true), CanEditMultipleObjects] public class LongPressButtonEditor : ButtonExEditor { public override void OnInspectorGUI() { base.OnInspectorGUI(); LongPressButton button = target as LongPressButton; button.longPressCheckTime = EditorGUILayout.FloatField("长按延迟时间,否则单击", button.longPressCheckTime); button.longPressIntervalTime = EditorGUILayout.FloatField("长按间隔时间", button.longPressIntervalTime); } }