FIX: Misaligned Virtual Cursor when changing resolution (ISXB-1119)#2315
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr-agent |
PR Code Suggestions ✨Explore these optional code suggestions:
🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr-agent |
|||||||||||
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## develop #2315 +/- ##
========================================
Coverage 77.95% 77.95%
========================================
Files 476 476
Lines 97453 97479 +26
========================================
+ Hits 75971 75994 +23
- Misses 21482 21485 +3 Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
ekcoh
left a comment
There was a problem hiding this comment.
I only looked at code changes, but fixing this TODO looks legit, I would recommend adding a CHANGELOG entry though and linking the associated public issue tracker from the changelog.
| - Fixed warnings being generated on Unity 6.4 and 6.5. (ISX-2395). | ||
| - Fixed extra empty lines being displayed in the control binding list when mouse buttons are pressed [ISXB-1677](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1677) | ||
| - Fixed InputActionReference not being set when attempting to set it on a Prefab or ScriptableObject [ISXB-1787](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1787) | ||
| - Fixed misaligned Virtual Cursor when changing resolution [ISXB-1119](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1119) |
There was a problem hiding this comment.
Thanks for adding the missing CHANGELOG entry.
There was a problem hiding this comment.
@Darren-Kelly-Unity changelog is under the wrong area, should be under unreleased
|
/test_plan |
Test Plan
Summary of Changes & Risk AssessmentSummary of ChangesThis PR fixes an issue where the virtual cursor in the Input System's UI plugin became misaligned or moved at incorrect speeds when the game resolution was changed. It introduces scaling logic in Risk Assessment
Test ScenariosFunctional Testing
Regression Testing
🔍 Regression Deep Dive (additional risks identified)
Edge Cases
💡 This test plan updates automatically when 🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr |
|
It could also be a case of our sample being incorrect and not working with the updated code? |
Description
When changing resolution in the virtual cursor sample the virtual cursor ended up misaligned in different resolutions.
https://jira.unity3d.com/browse/ISXB-1119
Testing status & QA
I have tested in multiple resolutions & swapping resolutions at runtime to be sure this is working.
Overall Product Risks
Comments to 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.