microsoft / microsoft/Microsoft.Unity.Analyzers
Methods used by the InputSystem should not be marked by IDE0051.
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 812
- Forks
- 88
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 11
Description
Problem statement
The InputSystem uses private event functions:
void OnMove(InputValue value)
{
rawInput = value.Get<Vector2>();
}
Which gives Private member 'Player.OnMove' is unused. [Roslyn(IDE0051)].
Proposed solution
We should suppress those suggestions. We need to check if there are naming rules for the methods or if we need to extract that from Unity metadata which would make it harder.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are identified. Start by locating the analyzer logic that reports IDE0051 and examine how Unity InputSystem callback methods are recognized; done means valid private callbacks such as OnMove no longer produce the suggestion without broadly hiding genuine unused-member warnings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- game-dev, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100