docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Cinemachine Spline Dolly LookAt Targets

    Spline Dolly LookAt Targets Inspector

    This CinemachineCamera Rotation Control behaviour lets you assign LookAt targets to points on a spline, so that as the camera arrives at the position on the spline, it looks at the specified place.

    It's useful for creating curated dolly shots with specified aim targets along the way. This behaviour eliminates the need to provide rotation animations for the camera that are synchronized with the spline position animation. LookAt points are anchored to specific spline positions, and because they specify a LookAt target point, the appropriate rotation angles get computed dynamically. As a result, the rotation animation is more robust and less likely to break if the spline is modified.

    To use this behaviour, select it in the Rotation Control section of the CinemachineCamera inspector, or just add it manually to a CinemachineCamera. Note that a CinemachineSplineDolly behaviour is required in the Position Control section of the CinemachineCamera. Then, add Data Points to the array.

    Scene View Tool

    When the LookAtDataOnSpline is selected in the inspector, a Scene View tool is provided to position the LookAt targets along the spline. The tool lets you add, remove, and reposition LookAt targets.

    Spline Dolly LookAt Targets Tool

    Properties

    Property Field Description
    Index Unit Defines how to interpret the Index field for each data point. Knot is the recommended value because it remains robust if the spline points change.
    Data Points The list of LookAt target on the spline. As the camera approaches these positions on the spline, the camera will look at the corresponding targets.
    Index The position on the Spline where the camera should look at the supplied point. The value is interpreted according to the Index Unit setting.
    Look At The target object to look at. It may be None, in which case the Offset will specify a point in world space.
    Offset The offset (in local coords) from the LookAt target's origin. If LookAt target is None, this will specify a world-space point.
    Easing Controls how to ease in and out of this target. A value of 0 will linearly interpolate between LookAt points, while a value of 1 will slow down and briefly pause the rotation to look at the target.
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)