Search Issue Tracker

Fixed in 1.0.0-preview.2

Votes

0

Found in [Package]

1.0.0

Issue ID

1187163

Regression

No

ArgumentNullException when adding device

Package: Input System

-

-e: When rebinding conflicts with the default bindings are resolved by overriding them with an empty string to unbind them. However, if any binding's effectivePath is an empty string, InputSystem.AddDevice throws an exception. Adding the device before overriding the bindings, the device can be added successfully.

-repro:
--Open the scene and play
--NOTICE ArgumentNullException in the console, the device is not created
--Move the AddDevice call in Repo.Start above the ApplyBindingOverride call or remove it
--Play scene again and no error is thrown, the device is added successfully

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.