#if ENABLE_INPUT_BINDERS using UnityEngine; using UnityEditor; namespace Klak.Vfx.Editor { [CustomEditor(typeof(VFXInputEventBinder)), CanEditMultipleObjects] sealed class VFXInputEventBinderEditor : UnityEditor.Editor { SerializedProperty _target; SerializedProperty _eventName; SerializedProperty _action; void OnEnable() { _target = serializedObject.FindProperty("target"); _eventName = serializedObject.FindProperty("EventName"); _action = serializedObject.FindProperty("Action"); } public override void OnInspectorGUI() { serializedObject.Update(); EditorGUILayout.PropertyField(_target); EditorGUILayout.PropertyField(_eventName); EditorGUILayout.Space(); EditorGUILayout.PropertyField(_action); EditorGUILayout.Space(); EditorGUILayout.HelpBox ("Input value (axis, pressure, etc.) will be set as an alpha " + "value of the event attribute.", MessageType.None); serializedObject.ApplyModifiedProperties(); } } } // namespace Klak.Vfx.Editor #endif