Search Issue Tracker
Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.
Postponed
Votes
0
Found in [Package]
1.1.0-preview.3
Issue ID
1316763
Regression
No
[Input System] Three events are logged for every phase change of the action when pressing a button once
How to reproduce:
1. Open the attached project "tripleinput.zip"
2. From the Project tab, open Assets/Scenes/SampleScene.unity
3. Enter Play Mode and make sure that the Console tab is visible
4. Press the spacebar once
Expected results: only one message is logged in the Console
Actual results: three messages are logged in the Console
Reproducible with: 2019.4.22f1, 2020.2.7f1, 2020.3.1f1, 2021.1.0b12, 2021.2.0a9 (Input System 1.0.2, 1.1.0-preview.3)
Could not test with: 2018.4.33f1 as it requires outdated versions of Input System
Notes:
- The issue appears due to UnityEvents codepath invoking the callback for every phase change of the action (started, performed, cancelled)
- The current workaround is to detect phases through scripts and call events based on that (https://docs.unity3d.com/Packages/com.unity.inputsystem@1.0/api/UnityEngine.InputSystem.InputAction.CallbackContext.html#properties)
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
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
Resolution Note:
Will get addressed as feature work.