JetBrains / JetBrains/resharper-unity

New input system messages sent via SendMessage are marked as unused

Open
#2,248 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.2k
Forks
142
PR merge metrics
No merged PRs in 30d

Description

Using the new input system I noticed that methods in scripts associated with actions are marked as unused. For instance with the following setup
![Screenshot 2022-01-18 at 10 56 50](https://user-images.githubusercontent.com/45569997/149915732-2310c47f-97a3-4dcd-83f8-943c2881a713.png)
the respective message handler is erroneously marked as unused
![Screenshot 2022-01-18 at 11 05 20](https://user-images.githubusercontent.com/45569997/149915848-1a236e1d-27a6-4d23-85fc-55296ae30c15.png)

It'd be nice to not have it display as a false positive even though I expect that to be difficult since that behaviour script would have to be matched against a Player Input component on the same GameObject.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.