#if UNITY_EDITOR using UnityEditor; using UnityEditor.IMGUI.Controls; namespace UnityEngine.InputSystem.Editor { /// /// Property drawer for . /// [CustomPropertyDrawer(typeof(InputAction))] internal class InputActionDrawer : InputActionDrawerBase { protected override TreeViewItem BuildTree(SerializedProperty property) { return InputActionTreeView.BuildWithJustBindingsFromAction(property); } protected override string GetSuffixToRemoveFromPropertyDisplayName() { return " Action"; } } } #endif // UNITY_EDITOR