microsoft / microsoft/Microsoft.Unity.Analyzers

Methods used by the InputSystem should not be marked by IDE0051.

Open
#289 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

approved rule On hold
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.