Search Issue Tracker
By Design
Votes
0
Found in [Package]
1.0.0
1.4.4
Issue ID
ISXB-391
Regression
No
[Input System] anyKey.wasReleasedThisFrame return true only when the last button was released
Steps to reproduce:
1. Open the attached “InputAnyKey” project
2. Open “SampleScene” scene
3. Enter Play Mode
4. Observe the Console window while pressing and holding, then releasing multiple buttons
Expected result: Prints true every time the button is released
Actual result: Prints true only for the last released button
Reproducible with: 1.0.2 (2021.3.16f1), 1.2.0(2021.3.16f1), 1.4.4 (2020.3.43f1, 2021.3.16f1, 2022.2.1f1, 2023.1.0a24)
Reproduced on: macOS Monterey 12.2 (Intel)
Note: The issue is reproducible in an Editor and in a build
-
vnpbwfmcgwexwos
Jan 23, 2023 05:59
Bergabunglah di slot online terkini serta terpopuler 2023 di ( https://157.245.84.48 ). Jika Anda tertarik untuk bermain dengan uang sungguhan, maka permainan ini cocok untuk Anda. Bermain slot online dengan rasa nyaman serta aman dengan jaminan informasi pribadi yang tidak hendak bocor cuma terdapat di web ( https://162.243.175.185 ) slot gacor online mudah menang jackpot. Link web Poker88 slot gacor pula mempunyai tansaksi bank terlengkap buat mempermudah para slotter dalam melaksanakan deposit ataupun withdraw. Web ( https://67.207.83.133 ) pula mempunyai sistem customer service yang senantiasa melayani kamu sepanjang hadapi permasalahan teknis dalam game slot online maupun dalam perihal deposit ataupun withdraw.
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note:
The anyKey is a 'synthetic control' that is activated when one or more keys are pressed
(see https://docs.unity3d.com/Packages/com.unity.inputsystem@1.6/manual/Keyboard.html#controls)
Therefore it will only return true for wasReleasedThisFrame when there are no longer any keys pressed. This is what is correctly occurring.
The phrasing of the code anyKey.wasReleasedThisFrame can lead a reader to believe it would be triggered when 'an individual key is released' but that is not the case. This is therefore working as designed.