Search Issue Tracker
By Design
Votes
1
Found in [Package]
1.2.0
Issue ID
1381485
Regression
No
InputSystem Package unresponsive when multiple bindings on an action
Reproduction steps:
1. Open project "TestDebugInput.zip"
2. Open Scene "SampleScene" and enter Play Mode
3. Click and hold the Orange Panel
4. Observe logs in the Console window
Expected result: "Get pos" is printed once
Actual result: "Get pos" is printed twice
Reproducible with: 1.2.0 (2019.4.32f1, 2020.3.23f1, 2021.2.3f1, 2022.1.0a15)
Note: This doesn't happen when clicking and holding on the Green Panel
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Skinned Mesh Renderer with multiple Animator Components does not render when "Optimize Game Objects" is enabled
- [iOS]Certain characters are not displayed when using iOS devices with 18 OS and newer
- Trees do not render in 'Unity Terrain - URP Demo Scene'
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
Resolution Note:
The code is hooking the same method up to all three action notifications (started, performed, and canceled). So the same code gets called for every change on the action. An action will go through 'started' before going to 'performed' or 'canceled'. Thus you get one call for 'started' and one call for 'performed'. So two calls. 'InputAction.CallbackContext.phase' tells you which phase the action currently is in.