Skip to content

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

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

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

    approved ruleIndicates if the new proposed rule has been approved to move to implementation phase

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions