INPUT-202 unity config_error ai_generated true

InputSystem: Conflict detected: Multiple actions bound to same control 'Keyboard/w'

ID: unity/input-system-binding-conflict

Also available as: JSON · Markdown · 中文
92%Fix Rate
88%Confidence
1Evidence
2024-11-05First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
Unity 2022.3 active
Unity 2023.1 active
Unity 2023.2 active

Root Cause

Two or more input actions in the same or different action maps are bound to the same input control, causing ambiguity.

generic

中文

同一或不同操作映射中的两个或多个输入操作绑定到同一输入控件,导致歧义。

Official Documentation

https://docs.unity3d.com/Packages/[email protected]/manual/InputDebugger.html

Workarounds

  1. 95% success In the Input Action Asset, review each action's bindings and remove duplicates. Use the 'Find Duplicate Bindings' tool under 'Window > Input System > Input Debugger'.
    In the Input Action Asset, review each action's bindings and remove duplicates. Use the 'Find Duplicate Bindings' tool under 'Window > Input System > Input Debugger'.
  2. 90% success Use 'Composite' bindings (e.g., 2D Vector) for movement to avoid separate bindings for each key.
    Use 'Composite' bindings (e.g., 2D Vector) for movement to avoid separate bindings for each key.

中文步骤

  1. 在输入操作资源中,检查每个操作的绑定并删除重复项。使用“窗口 > 输入系统 > 输入调试器”下的“查找重复绑定”工具。
  2. 使用“复合”绑定(例如 2D 向量)进行移动,避免为每个键单独绑定。

Dead Ends

Common approaches that don't work:

  1. Remove all bindings and re-add them manually one by one. 30% fail

    This is time-consuming and may reintroduce the same conflict if the root cause (duplicate bindings) is not addressed.

  2. Disable one of the action maps entirely. 50% fail

    This may break intended gameplay functionality and is an overreaction.