Skip to content

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

Open

Description

@jbevain

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.

Activity

  1. added
    approved rule
    on Aug 9, 2023
  2. added
    On hold
    on Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    On holdapproved rule

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions