FIX: Autosave closes add control scheme ui element on save. (ISXB-1713) by Darren-Kelly-Unity · Pull Request #2268 · Unity-Technologies/InputSystem · GitHub
Skip to content

FIX: Autosave closes add control scheme ui element on save. (ISXB-1713)#2268

Merged
Darren-Kelly-Unity merged 26 commits into
developfrom
bugfix/ISXB-1713-autosave-closeui-bug
Dec 16, 2025
Merged

FIX: Autosave closes add control scheme ui element on save. (ISXB-1713)#2268
Darren-Kelly-Unity merged 26 commits into
developfrom
bugfix/ISXB-1713-autosave-closeui-bug

Conversation

@Darren-Kelly-Unity

@Darren-Kelly-Unity Darren-Kelly-Unity commented Oct 28, 2025

Copy link
Copy Markdown
Collaborator

Description

Fix an issue where the control scheme UI would close when pressing the + for adding a device type when there was a pending change to be auto saved.

Ticket:
https://jira.unity3d.com/browse/ISXB-1713

Testing status & QA

I have tested this manually in the editor on Unity version 6.000.1.5f1

Overall Product Risks

Please rate the potential complexity and halo effect from low to high for the reviewers. Note down potential risks to specific Editor branches if any.

  • Complexity: 2
  • Halo Effect: 1

Comments to reviewers

Please describe any additional information such as what to focus on, or historical info for the reviewers.

Checklist

Before review:

  • Changelog entry added.
    • Explains the change in Changed, Fixed, Added sections.
    • For API change contains an example snippet and/or migration example.
    • JIRA ticket linked, example (case %%). If it is a private issue, just add the case ID without a link.
    • Jira port for the next release set as "Resolved".
  • 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:

  • Commit message for squash-merge is prefixed with one of the list:
    • NEW: ___.
    • FIX: ___.
    • DOCS: ___.
    • CHANGE: ___.
    • RELEASE: 1.1.0-preview.3.

After merge:

  • Create forward/backward port if needed. If you are blocked from creating a forward port now please add a task to ISX-1444.

I still need to look into other solutions / look into if this fix is correct.
@u-pr

u-pr Bot commented Oct 28, 2025

Copy link
Copy Markdown
Contributor

@codecov-github-com

codecov-github-com Bot commented Oct 28, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...KAssetEditor/InputActionsEditorSettingsProvider.cs 0.00% 4 Missing ⚠️
...Editor/UITKAssetEditor/InputActionsEditorWindow.cs 0.00% 4 Missing ⚠️
...or/UITKAssetEditor/Views/InputActionsEditorView.cs 0.00% 3 Missing ⚠️
@@             Coverage Diff             @@
##           develop    #2268      +/-   ##
===========================================
- Coverage    77.95%   77.91%   -0.04%     
===========================================
  Files          477      476       -1     
  Lines        97419    97465      +46     
===========================================
- Hits         75943    75941       -2     
- Misses       21476    21524      +48     
Flag Coverage Δ
inputsystem_MacOS_2022.3 5.54% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_2022.3_project 75.47% <0.00%> (-0.03%) ⬇️
inputsystem_MacOS_6000.0 5.32% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.0_project 77.36% <0.00%> (-0.06%) ⬇️
inputsystem_MacOS_6000.2 5.32% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.2_project 77.36% <0.00%> (-0.05%) ⬇️
inputsystem_MacOS_6000.3 5.32% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.3_project 77.36% <0.00%> (-0.06%) ⬇️
inputsystem_MacOS_6000.4 5.32% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.4_project 77.36% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.5 5.32% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.5_project 77.36% <0.00%> (-0.06%) ⬇️
inputsystem_Ubuntu_2022.3 5.54% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_2022.3_project 75.27% <0.00%> (-0.03%) ⬇️
inputsystem_Ubuntu_6000.0 5.32% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.0_project 77.16% <0.00%> (-0.06%) ⬇️
inputsystem_Ubuntu_6000.2 5.32% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.2_project 77.16% <0.00%> (-0.06%) ⬇️
inputsystem_Ubuntu_6000.3 5.32% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.3_project 77.16% <0.00%> (-0.06%) ⬇️
inputsystem_Ubuntu_6000.4 5.33% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.4_project 77.17% <0.00%> (-0.06%) ⬇️
inputsystem_Ubuntu_6000.5 5.33% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.5_project 77.17% <0.00%> (-0.06%) ⬇️
inputsystem_Windows_2022.3 5.54% <0.00%> (-0.01%) ⬇️
inputsystem_Windows_2022.3_project 75.60% <0.00%> (-0.03%) ⬇️
inputsystem_Windows_6000.0 5.32% <0.00%> (-0.01%) ⬇️
inputsystem_Windows_6000.0_project 77.49% <0.00%> (-0.06%) ⬇️
inputsystem_Windows_6000.2 5.32% <0.00%> (-0.01%) ⬇️
inputsystem_Windows_6000.2_project 77.49% <0.00%> (-0.06%) ⬇️
inputsystem_Windows_6000.3 5.32% <0.00%> (-0.01%) ⬇️
inputsystem_Windows_6000.3_project 77.48% <0.00%> (-0.06%) ⬇️
inputsystem_Windows_6000.4 5.32% <0.00%> (-0.01%) ⬇️
inputsystem_Windows_6000.4_project 77.49% <0.00%> (-0.05%) ⬇️
inputsystem_Windows_6000.5 5.32% <0.00%> (-0.01%) ⬇️
inputsystem_Windows_6000.5_project 77.49% <0.00%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...or/UITKAssetEditor/Views/InputActionsEditorView.cs 53.25% <0.00%> (+9.02%) ⬆️
...KAssetEditor/InputActionsEditorSettingsProvider.cs 0.00% <0.00%> (ø)
...Editor/UITKAssetEditor/InputActionsEditorWindow.cs 54.20% <0.00%> (-0.94%) ⬇️

... and 14 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@K-Tone K-Tone left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay to me! Thanks for working on it.

CC @ekcoh for viz, this fix seems to build up on my other idea of not saving during the sensitive moments in time. Not cool to be extending it, but what else could be done before our auto-save code is redesigned to be less crazy than it is now? :)

@Pauliusd01

Pauliusd01 commented Oct 31, 2025

Copy link
Copy Markdown
Collaborator

It still reproduces with project wide actions view but if it is complicated to fix I'd be fine with merging as is.

Steps to repro: Open project settings -> input system view -> make sure you have a PWA asset if not make one -> make some changes (this window always uses auto save) -> start editing the control scheme as bug repro describes -> focus is lost

31.10.2025.-.Unity.322.mp4

@jfreire-unity jfreire-unity changed the title FIX: [ISXB-1713] autosave closes add control scheme ui element on save. FIX: Autosave closes add control scheme ui element on save. (ISXB-1713) Nov 5, 2025

@Pauliusd01 Pauliusd01 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating status

@Pauliusd01 Pauliusd01 self-requested a review December 15, 2025 14:21
@ritamerkl ritamerkl requested a review from K-Tone December 15, 2025 14:22

@ritamerkl ritamerkl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice workaround

@ekcoh ekcoh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this fix @Darren-Kelly-Unity. The staticness of these states look a bit dangerous to me, but if it solves the problem lets land this fix since it quite condensed.

@Darren-Kelly-Unity

Copy link
Copy Markdown
Collaborator Author

Thanks for doing this fix @Darren-Kelly-Unity. The staticness of these states look a bit dangerous to me, but if it solves the problem lets land this fix since it quite condensed.

I actually changed it now due to a comment from Rita asking about with two windows open, now I just check the view to see if the ControlScheme is currently active for each instance which is better.

@Pauliusd01

This comment was marked as off-topic.

@u-pr

u-pr Bot commented Dec 16, 2025

Copy link
Copy Markdown
Contributor

@Darren-Kelly-Unity Darren-Kelly-Unity merged commit 55bc806 into develop Dec 16, 2025
126 checks passed
@Darren-Kelly-Unity Darren-Kelly-Unity deleted the bugfix/ISXB-1713-autosave-closeui-bug branch December 16, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants