FIX: Input System actions not auto-saving in Project Settings when both related windows were open#2362
FIX: Input System actions not auto-saving in Project Settings when both related windows were open#2362josepmariapujol-unity wants to merge 17 commits intodevelopfrom
Conversation
PR Reviewer Guide 🔍(Review updated until commit 5c2eab5)Here are some key observations to aid the review process:
🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr |
PR Code Suggestions ✨Latest suggestions up to 5c2eab5 Explore these optional code suggestions:
🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr Previous suggestionsSuggestions up to commit 7e2617c
Suggestions up to commit 826e5a2
|
|||||||||||||||||||||
Added a fix for saving InputSystem actions in ProjectSettings.
Removed XML documentation comments for the Save method.
|
Persistent review updated to latest commit 7e2617c |
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## develop #2362 +/- ##
===========================================
- Coverage 77.90% 77.89% -0.02%
===========================================
Files 476 476
Lines 97613 97643 +30
===========================================
+ Hits 76048 76055 +7
- Misses 21565 21588 +23 Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes 🚀 New features to boost your workflow:
|
|
This could be probably the wrong approach, since I have just realized that it is a regression from PR |
Remove unused variable 'projectSettingsWindowIsOpen'.
|
Persistent review updated to latest commit 5c2eab5 |
MorganHoarau
left a comment
There was a problem hiding this comment.
It's a minor change and I don't want to block the minor change but I have a few interrogations.
| // Since at that point it stops being a separate window that steals focus. | ||
| // (See case ISXB-1713) | ||
| if (!InputEditorUserSettings.autoSaveInputActionAssets || m_View.IsControlSchemeViewActive()) | ||
| if (m_View.IsControlSchemeViewActive()) |
There was a problem hiding this comment.
Double checking my understanding of the repo, so currently tested scenario is:
- Open Project settings > Input System project wide input actions window (PWIA)
- Open the InputActionAsset used in PWIA
- Add new ActionMap to the PWIA window
- Exit PWIA focus
Expected: InputActionAsset reflect the change from the PWIA auto save.
What would happen given the opposite scenario?
- Open Project settings > Input System project wide input actions window (PWIA)
- Open the InputActionAsset used in PWIA
- Disable auto save in the InputActionAsset window
- Add new ActionMap to the InputAction window
- Without saving, focus PWIA window. (Alt: make a small change (add a control to an existing input action))
- Focus back InputAction window
Expected: I assume that this should do nothing as the instance of PWIA is not dirty and skip auto save, but might be worth a quick try.
Alt Expected:
My assumption is that the PWIA is now auto saving and gaining priority over any unsaved work you do in the other window. This sounds like expected behaviour, but:
- could that count as a regression for some users?
- should we update documentation to reflect the expected behaviour?
- should InputActionAsset used in PWIA be readonly? (with maybe a helpbox to align with PlayerInput behaviour?)
Description
This PR fixes the problem of input system actions not being saved when ProjectSettings window is opened together with InputSystem Actions window.
Related post on forums
JIRA: UUM-134035
Before:
Before.mov
After:
After.mov
Testing status & QA
Double-check what is shown in the video works.
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.
Comments to reviewers
Please describe any additional information such as what to focus on, or historical info for the reviewers.
Checklist
Before review:
Changed,Fixed,Addedsections.Area_CanDoX,Area_CanDoX_EvenIfYIsTheCase,Area_WhenIDoX_AndYHappens_ThisIsTheResult.During merge:
NEW: ___.FIX: ___.DOCS: ___.CHANGE: ___.RELEASE: 1.1.0-preview.3.