-
Notifications
You must be signed in to change notification settings - Fork 329
FIX: Misaligned Virtual Cursor when changing resolution (ISXB-1119) #2315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
ekcoh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs CHANGELOG entry.
| - 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the missing CHANGELOG entry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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 |
Pauliusd01
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sample is unusable for me, I can't click on any of the buttons or scroll in 1080p and when I switch it to 4K my cursor is locked in an invisible bounding box and cannot even get to the buttons. Were you testing on a Mac? Maybe It's platform specific?
https://github.com/user-attachments/assets/396c46d1-a66c-45fd-b16e-657ec8ee4135
|
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.