detzt / BugReporting

Used to file Unity bug reports
MIT License
0 stars 0 forks source link

Project-wide Input Actions does not work with custom processors #7

Open detzt opened 5 months ago

detzt commented 5 months ago

Bug report sent.

What happened

Assigning an Input Actions Asset that contains a custom InputProcessor or InputBindingComposite as "Project-wide Input Actions" throws errors upon play.

How can we reproduce it using the example you attached

  1. Open the Scenes/SampleScene.unity and observe that everything works when pressing play. (You can move the cube with the default movement controls and the custom RotateProcessor rotates input by 45 degrees.)
  2. Select Settings/Controls.inputactions. (This is the Input Action Asset generated by Unity with an additional RotateProcessor : InputProcessor added to the Move action.)
  3. Click on "Assign as the Project-wide Input Actions" in the inspector. (Alternatively, assigning it under Project Settings -> Input System Package as "Project-wide Actions" yields the same result.)
  4. Press Play and notice the "No InputProcessor with name 'Rotate' (mentioned in 'Rotate') has been registered" errors in the console (with two distinct call stacks). In the Editor, things are still working, but in an Android build, this leads to an immediate crash of the App.
detzt commented 5 months ago

Public issue: https://issuetracker.unity3d.com/issues/errors-are-thrown-when-assigning-input-actions-asset-that-contains-a-custom-inputprocessor-or-inputbindingcomposite-as-project-wide-input-actions