-
Notifications
You must be signed in to change notification settings - Fork 328
FIX: ISXB-586 inputsystem sendpointerhovertoparent #1975
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
FIX: ISXB-586 inputsystem sendpointerhovertoparent #1975
Conversation
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.
Seems like the new changes need Editor version defines as it throws errors otherwise
…nto isxb-586-inputsystemsendpointerhovertoparent # Conflicts: # Packages/com.unity.inputsystem/CHANGELOG.md # Packages/com.unity.inputsystem/InputSystem/Unity.InputSystem.asmdef
…nto isxb-586-inputsystemsendpointerhovertoparent # Conflicts: # Packages/com.unity.inputsystem/CHANGELOG.md
…nto isxb-586-inputsystemsendpointerhovertoparent # Conflicts: # Packages/com.unity.inputsystem/CHANGELOG.md # Packages/com.unity.inputsystem/InputSystem/Plugins/UI/InputSystemUIInputModule.cs
I believe all the errors are fixed now. |
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.
LGTM, the bug seems fixed and no more errors on older Editor versions
Description
Jira ticket: https://jira.unity3d.com/browse/ISXB-586
Trunk PR: https://github.cds.internal.unity3d.com/unity/unity/pull/52658
Trunk PR needs to land first before this PR can be tested (and merged).
Changes made
Implements BaseInputModule sendPointerHoverToParent property for InputSystemUIInputModule. Also properly set PointerEventData reentered and fullyExited properties.
Testing
Manually tested the repro project with the fix. Added 6 unit tests (copied from the uGUI StandaloneInputModule-based tests).
Risk
Even though the changes are mostly copying the code from StandaloneInputModule, the changes are a bit interleaved with other new logic that only exists on the InputSystemUIInputModule side. The relation between those two classes is a bit of a mess (very little reuse of methods that have been put there in the spirit of being reused). I can't be entirely sure that this change is risk-free. I've tested the feature to a reasonable level, but I encourage any QA that knows uGUI more deeply to jump in.
Checklist
Before review:
Changed
,Fixed
,Added
sections.Area_CanDoX
,Area_CanDoX_EvenIfYIsTheCase
,Area_WhenIDoX_AndYHappens_ThisIsTheResult
.During merge:
NEW: ___
.FIX: ___
.DOCS: ___
.CHANGE: ___
.RELEASE: 1.1.0-preview.3
.After merge: