Skip to content
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

CMCL-1591: Add LookAtDataOnSpline, also some SplineRoll cleanup #996

Closed
wants to merge 4 commits into from

Conversation

glabute
Copy link
Collaborator

@glabute glabute commented May 14, 2024

Purpose of this PR

CMCL-1591

New feature! Specifies LookAt data points for positions along a spline, so that a dolly camera looks at those places when it reaches specific positions on the spline.

image

New scene view tool to edit those points (works like SplineRoll tool):

image

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

Comments to reviewers

The tool icon is a placeholder, @JulienDidierjean is taking care of providing new icons.
Possible improvements (to think about):

  • Add option to specify a Transform to look at instead of a hardcoded point
  • Prettier inspector (Data Points list is ugly - but this is provided by the spline team)
  • Direct access to tool via button on inspector
  • Interacting with tool auto-selects the appropriate list item in inspector
  • For some reason, SaveDuringPlay does not capture modifications to the data points

@sebastienduverne Please review the user manual changes and figure out where to put links to the page.

@glabute glabute requested a review from AntoineCharton May 14, 2024 21:01
@glabute glabute requested a review from sebastienduverne as a code owner May 14, 2024 21:01
@codecov-commenter
Copy link

codecov-commenter commented May 14, 2024

Codecov Report

Attention: Patch coverage is 2.22222% with 176 lines in your changes are missing coverage. Please review.

Project coverage is 26.71%. Comparing base (7c09510) to head (2590cc7).

Files Patch % Lines
...tor/Editors/CinemachineLookAtDataOnSplineEditor.cs 0.00% 71 Missing ⚠️
...nity.cinemachine/Editor/Overlays/SplineRollTool.cs 0.00% 36 Missing ⚠️
...untime/Components/CinemachineLookAtDataOnSpline.cs 10.52% 34 Missing ⚠️
...hine/Editor/Editors/CinemachineSplineCartEditor.cs 0.00% 12 Missing ⚠️
...ine/Editor/Editors/CinemachineSplineDollyEditor.cs 0.00% 12 Missing ⚠️
...ity.cinemachine/Editor/Utility/InspectorUtility.cs 0.00% 9 Missing ⚠️
...hine/Editor/Editors/CinemachineSplineRollEditor.cs 0.00% 2 Missing ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #996      +/-   ##
==========================================
- Coverage   26.83%   26.71%   -0.12%     
==========================================
  Files         249      251       +2     
  Lines       28000    28138     +138     
==========================================
+ Hits         7513     7517       +4     
- Misses      20487    20621     +134     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@glabute glabute closed this May 15, 2024
@glabute
Copy link
Collaborator Author

glabute commented May 15, 2024

Opening a new PR, splitting this one into new features and fixed to old stuff

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