Search Issue Tracker

Active

Votes

0

Found in

1.18.0

Issue ID

UUM-135670

Regression

No

Device capability matching fails when registering a layout using JSON "device.capabilities"

Input System

-

Reproduction steps:
1. Open the attached “IN-135636” project
2. Open the “Scenes/BugReproScene.unity/BugReproScene” Scene
3. Enter the Play Mode
4. Observe the Console window

Actual result: Two tests fail and errors are thrown
Expected result: Tests pass and no errors are thrown

Reproducible with: 1.4.1, 1.10.0, 1.19.0 (6000.0.69f1, 6000.3.10f1, 6000.4.0b10, 6000.5.0a8)

Reproducible on: Windows 11
Not reproducible on: No other environments tested

Workaround:
1. Locate the “com.unity.inputsystem” package under the “Library/PackageCache/” directory
2. Copy the package folder to the “Packages/” directory
3. Modify the “Packages/manifest.json” to use the copied folder (e.g., {{"com.unity.inputsystem": "file:com.unity.inputsystem"}})
4. Open the “com.unity.inputsystem/InputSystem/Devices/InputDeviceMatcher.cs” Script
5. Modify the “MatcherJson” struct:

{noformat}internal struct MatcherJson
{...
[Serializable] // add this line
public struct Capability
{
public string path;
public string value;
}
...
}{noformat}

6. Enter the Play Mode
7. Observe the Console window (Test 1 has passed)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.