Skip to content

Conversation

@ritamerkl
Copy link
Collaborator

@ritamerkl ritamerkl commented Dec 12, 2025

Description

This PR updates documentation around the MonoBehaviour.OnMouse events. Now that the events are supported by the InputSystem package this should be visible in the documentation. I added a new hint to this in the migration page and removed the remark of "it not being supported" in the Known Limitations section.

Ticket: ISX-2383

Testing status & QA

No testing

Overall Product Risks

  • Complexity: low
  • Halo Effect: low

Comments to reviewers

Please check wording, and if you think the place of mentioning the OnMouse events is appropiate.

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.

@u-pr-agent
Copy link
Contributor

u-pr-agent bot commented Dec 12, 2025

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis ✅

ISX-2383 - Fully compliant

Compliant requirements:

  • Removed the outdated limitation note in KnownLimitations.md.
  • Added a section in Migration.md confirming MonoBehaviour.OnMouse events are supported in Unity Editor 6.4 or newer.
⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪

The PR involves minimal text updates to documentation files with no logic changes.
🏅 Score: 100

The documentation updates accurately address the ticket requirements and remove outdated information regarding known limitations.
🧪 No relevant tests
🔒 No security concerns identified
⚡ No major issues detected
  • Update review

🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr-agent

@u-pr-agent
Copy link
Contributor

u-pr-agent bot commented Dec 12, 2025

PR Code Suggestions ✨

No code suggestions found for the PR.

@codecov-github-com
Copy link

codecov-github-com bot commented Dec 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

@@             Coverage Diff             @@
##           develop    #2301      +/-   ##
===========================================
- Coverage    77.95%   77.94%   -0.01%     
===========================================
  Files          477      476       -1     
  Lines        97419    97436      +17     
===========================================
+ Hits         75943    75948       +5     
- Misses       21476    21488      +12     
Flag Coverage Δ
inputsystem_MacOS_2022.3 5.54% <ø> (-0.01%) ⬇️
inputsystem_MacOS_2022.3_project 75.47% <ø> (-0.03%) ⬇️
inputsystem_MacOS_6000.0 5.32% <ø> (-0.01%) ⬇️
inputsystem_MacOS_6000.0_project 77.36% <ø> (-0.06%) ⬇️
inputsystem_MacOS_6000.2 5.32% <ø> (-0.01%) ⬇️
inputsystem_MacOS_6000.2_project 77.36% <ø> (-0.06%) ⬇️
inputsystem_MacOS_6000.3 5.32% <ø> (-0.01%) ⬇️
inputsystem_MacOS_6000.3_project 77.36% <ø> (-0.06%) ⬇️
inputsystem_MacOS_6000.4 5.32% <ø> (-0.01%) ⬇️
inputsystem_MacOS_6000.4_project 77.36% <ø> (-0.01%) ⬇️
inputsystem_MacOS_6000.5 5.32% <ø> (-0.01%) ⬇️
inputsystem_MacOS_6000.5_project 77.36% <ø> (-0.06%) ⬇️
inputsystem_Ubuntu_2022.3 5.54% <ø> (-0.01%) ⬇️
inputsystem_Ubuntu_2022.3_project 75.27% <ø> (-0.03%) ⬇️
inputsystem_Ubuntu_6000.0 5.32% <ø> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.0_project 77.17% <ø> (-0.05%) ⬇️
inputsystem_Ubuntu_6000.2 5.32% <ø> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.2_project 77.16% <ø> (-0.06%) ⬇️
inputsystem_Ubuntu_6000.3 5.32% <ø> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.3_project 77.16% <ø> (-0.06%) ⬇️
inputsystem_Ubuntu_6000.4 5.33% <ø> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.4_project 77.17% <ø> (-0.06%) ⬇️
inputsystem_Ubuntu_6000.5 5.33% <ø> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.5_project 77.17% <ø> (-0.06%) ⬇️
inputsystem_Windows_2022.3 5.54% <ø> (-0.01%) ⬇️
inputsystem_Windows_2022.3_project 75.60% <ø> (-0.03%) ⬇️
inputsystem_Windows_6000.0 5.32% <ø> (-0.01%) ⬇️
inputsystem_Windows_6000.0_project 77.49% <ø> (-0.06%) ⬇️
inputsystem_Windows_6000.2 5.32% <ø> (-0.01%) ⬇️
inputsystem_Windows_6000.2_project 77.49% <ø> (-0.06%) ⬇️
inputsystem_Windows_6000.3 5.32% <ø> (-0.01%) ⬇️
inputsystem_Windows_6000.3_project 77.49% <ø> (-0.06%) ⬇️
inputsystem_Windows_6000.4 5.32% <ø> (-0.01%) ⬇️
inputsystem_Windows_6000.4_project 77.49% <ø> (-0.05%) ⬇️
inputsystem_Windows_6000.5 5.32% <ø> (-0.01%) ⬇️
inputsystem_Windows_6000.5_project 77.49% <ø> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 7 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

## Features Supported by Old Input Manager

* `MonoBehaviour` mouse methods (`OnMouseEnter`, `OnMouseDrag`, etc) will not be called by the Input System.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO this line should be kept with a mention that it is true up to 6.4


### Mouse

The MonoBehaviour.OnMouse events such as [MonoBehaviour.OnMouseDown()](https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnMouseDown.html) are supported using the Unity Editor 6.4 or newer.
Copy link
Collaborator

@Pauliusd01 Pauliusd01 Dec 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slight, very subjective, rewording suggestion:

The MonoBehaviour.OnMouse events (for example, MonoBehaviour.OnMouseDown()) are only supported in Unity Editor 6.4 and later.

Or

The MonoBehaviour.OnMouse events (for example, MonoBehaviour.OnMouseDown()) are supported in Unity Editor 6.4 and later.

Also, not sure if calling them methods or events is better here

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.

Left subjective comments but would be fine if It's unchanged

ritamerkl and others added 2 commits December 15, 2025 11:31
Co-authored-by: JonMUnity <98557365+JonMUnity@users.noreply.github.com>
Co-authored-by: JonMUnity <98557365+JonMUnity@users.noreply.github.com>
@ritamerkl ritamerkl requested a review from JonMUnity December 15, 2025 10:31
@ritamerkl ritamerkl merged commit e8095ae into develop Dec 16, 2025
122 checks passed
@ritamerkl ritamerkl deleted the docs-update-for-onmouse branch December 16, 2025 16:52
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.

4 participants