InputSystem icon indicating copy to clipboard operation
InputSystem copied to clipboard

FIX: Renaming an input action should not consider action being renamed for uniqueness

Open andrew-oc opened this issue 3 years ago • 0 comments

Jira Issue Tracker

Description

Renaming an input action in the input action asset editor would consider the item being renamed for uniqueness, instead of ignoring it, so an input action named 'A' could not be directly renamed to 'a' and instead would become 'a1'.

Changes made

The action being renamed is now ignored when searching for unique input action names.

Notes

Checklist

Before review:

  • [x] Changelog entry added.
    • Explains the change in Changed, Fixed, Added sections.
    • For API change contains an example snippet and/or migration example.
    • FogBugz ticket attached, example ([case %number%](https://issuetracker.unity3d.com/issues/...)).
    • FogBugz is marked as "Resolved" with next release version correctly set.
  • [x] Tests added/changed, if applicable.
    • Functional tests Area_CanDoX, Area_CanDoX_EvenIfYIsTheCase, Area_WhenIDoX_AndYHappens_ThisIsTheResult.
    • Performance tests.
    • Integration tests.
  • [ ] Docs for new/changed API's.
    • Xmldoc cross references are set correctly.
    • Added explanation how the API works.
    • Usage code examples added.
    • The manual is updated, if needed.

During merge:

andrew-oc avatar Jun 16 '22 08:06 andrew-oc