Search Issue Tracker
Fixed in 1.1-pre.6
Votes
1
Found in [Package]
1.1.0-preview.1
Issue ID
1272563
Regression
No
[Input System] PerformInteractiveRebinding method doesn't detect button input when rebinding part of a 2D Vector Composite
How to reproduce:
1. Open the attached "1272563 repro" project
2. Open the "SampleScene" Scene from Assets > Scenes folder
3. Enter Play Mode
4. Press the "O" key on the keyboard
Expected result: "O" key is bound to the Up part of the 2D Vector Composite
Actual result: nothing happens
Reproducible with: 0.2.10-preview (2019.4.9f1), 0.9.6-preview (2019.4.9f1), 1.1.0-preview.1 (2019.4.9f1, 2020.1.4f1, 2020.2.0b1)
Could not test with: 0.1.2-preview (compilation errors)
Notes:
-If the Control Type of the "Vector Composite" Action from the "InputAsset" is changed from Vector 2 to anything else, the issue no longer reproduces
-This issue reproduces with Value and Pass Through Action Types and Analog, Digital, Digital Normalized Modes of the Composite
-The expectedControlType when targeting a specific part of the composite is Vector2 which is probably causing the issue
-
jamesdrd123
Nov 13, 2020 17:02
Just wanted to add a comment for anyone who has this same problem.
I believe the OP was correct in their assumption that the issue was the expected control type as when I set the expected control type to "Axis" using .WithExpectedControlType("Axis"), PerformInteractiveRebinding was able to detect the input fine.
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
- [Mobile] Developer Console does not appear when an error is thrown
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
Resolution Note (fix version 1.1-pre.6):
Fixed in 1.1-pre.6 (2022.1.0a9)