Skip to content

Conversation

benoitalain
Copy link
Contributor

@benoitalain benoitalain commented Jul 31, 2024

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:

  • 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.

@benoitalain benoitalain changed the title Isxb 586 inputsystemsendpointerhovertoparent FIX: ISXB-586 inputsystem sendpointerhovertoparent Jul 31, 2024
Copy link
Collaborator

@Pauliusd01 Pauliusd01 left a 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
@benoitalain
Copy link
Contributor Author

Seems like the new changes need Editor version defines as it throws errors otherwise

I believe all the errors are fixed now.

@Pauliusd01 Pauliusd01 self-requested a review August 29, 2024 09:21
Copy link
Collaborator

@Pauliusd01 Pauliusd01 left a 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

@benoitalain benoitalain merged commit 9d485e6 into develop Aug 30, 2024
2 checks passed
@benoitalain benoitalain deleted the isxb-586-inputsystemsendpointerhovertoparent branch August 30, 2024 18:55
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.

2 participants