Skip to content

Conversation

@glabute
Copy link
Collaborator

@glabute glabute commented Jul 17, 2025

Purpose of this PR

CMCL-1706: Reported on Discussions:
https://discussions.unity.com/t/inputaxis-triggerrecentering-doesnt-animate/945363/9

The issue was that while recentering got triggered, lingering input from the InputAxisController decelerator would read as new user input, immediately causing the recentering to be halted.

The fix is to add a new method to InputAxisController, which both cancels the lingering input and triggers the recentering.

Testing status

  • Added an automated test
  • Passed all automated tests
  • Manually tested

Documentation status

  • Updated CHANGELOG
  • Updated README (if applicable)
  • Commented all public classes, properties, and methods
  • Updated user documentation

Technical risk

low - just added new API

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 29 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@499137d). Learn more about missing BASE report.
Report is 168 commits behind head on main.

Files with missing lines Patch % Lines
...inemachine/Runtime/Core/InputAxisControllerBase.cs 0.00% 25 Missing ⚠️
com.unity.cinemachine/Runtime/Core/InputAxis.cs 0.00% 4 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1072   +/-   ##
=======================================
  Coverage        ?   27.32%           
=======================================
  Files           ?      256           
  Lines           ?    28865           
  Branches        ?        0           
=======================================
  Hits            ?     7888           
  Misses          ?    20977           
  Partials        ?        0           
Files with missing lines Coverage Δ
com.unity.cinemachine/Runtime/Core/InputAxis.cs 74.60% <0.00%> (ø)
...inemachine/Runtime/Core/InputAxisControllerBase.cs 70.66% <0.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codecov-github-com
Copy link

codecov-github-com bot commented Jul 21, 2025

Codecov Report

Attention: Patch coverage is 0% with 29 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...inemachine/Runtime/Core/InputAxisControllerBase.cs 0.00% 25 Missing ⚠️
com.unity.cinemachine/Runtime/Core/InputAxis.cs 0.00% 4 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1072      +/-   ##
==========================================
+ Coverage   17.04%   23.52%   +6.48%     
==========================================
  Files         209      228      +19     
  Lines       23920    27323    +3403     
==========================================
+ Hits         4076     6427    +2351     
- Misses      19844    20896    +1052     
Flag Coverage Δ
Ubuntu_trunk 23.47% <0.00%> (?)
cinemachine_MacOS_2022.3 17.06% <0.00%> (?)
cinemachine_MacOS_6000.0 16.95% <0.00%> (-0.03%) ⬇️
cinemachine_MacOS_6000.1 16.95% <0.00%> (-0.03%) ⬇️
cinemachine_MacOS_6000.2 16.95% <0.00%> (-0.03%) ⬇️
cinemachine_MacOS_6000.3 16.95% <0.00%> (-0.03%) ⬇️
cinemachine_Ubuntu_2022.3 17.06% <0.00%> (?)
cinemachine_Ubuntu_6000.0 16.95% <0.00%> (-0.03%) ⬇️
cinemachine_Ubuntu_6000.1 16.95% <0.00%> (-0.03%) ⬇️
cinemachine_Ubuntu_6000.2 16.95% <0.00%> (-0.03%) ⬇️
cinemachine_Ubuntu_6000.3 16.95% <0.00%> (-0.03%) ⬇️
cinemachine_Windows_2022.3 17.06% <0.00%> (-0.03%) ⬇️
cinemachine_Windows_6000.0 16.95% <0.00%> (-0.03%) ⬇️
cinemachine_Windows_6000.1 16.95% <0.00%> (-0.03%) ⬇️
cinemachine_Windows_6000.2 16.95% <0.00%> (-0.03%) ⬇️
cinemachine_Windows_6000.3 16.95% <0.00%> (-0.03%) ⬇️

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

Files with missing lines Coverage Δ
com.unity.cinemachine/Runtime/Core/InputAxis.cs 74.60% <0.00%> (-2.45%) ⬇️
...inemachine/Runtime/Core/InputAxisControllerBase.cs 70.66% <0.00%> (-14.14%) ⬇️

... and 42 files with indirect coverage changes

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

@glabute glabute merged commit 0db1753 into main Jul 21, 2025
115 checks passed
@glabute glabute deleted the dev/fix-trigger-recentering branch July 21, 2025 14: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.

3 participants