docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface SplineAutoDolly.ISplineAutoDolly

    Interface for procedural spline dolly. Implement this to provide a custom algorithm for choosing a point on the path.

    Namespace: Unity.Cinemachine
    Assembly: Unity.Cinemachine.dll
    Syntax
    public interface SplineAutoDolly.ISplineAutoDolly

    Properties

    RequiresTrackingTarget

    Returns true if this implementation requires a tracking target.

    Declaration
    bool RequiresTrackingTarget { get; }
    Property Value
    Type Description
    bool

    Methods

    GetSplinePosition(MonoBehaviour, Transform, SplineContainer, float, PathIndexUnit, float)

    Compute the desired position on the spline.

    Declaration
    float GetSplinePosition(MonoBehaviour sender, Transform target, SplineContainer spline, float currentPosition, PathIndexUnit positionUnits, float deltaTime)
    Parameters
    Type Name Description
    MonoBehaviour sender

    The MonoBehaviour that is asking.

    Transform target

    The target object (may be null for algorithms that don't require it).

    SplineContainer spline

    The spline on which the location must be found.

    float currentPosition

    The current position on the spline.

    PathIndexUnit positionUnits

    The units in which spline positions are expressed.

    float deltaTime

    Current deltaTime. If smaller than 0, then previous frame data should be ignored.

    Returns
    Type Description
    float

    The desired position on the spline, expressed in positionUnits.

    Reset()

    Call this to reset any state information contained in the implementation.

    Declaration
    void Reset()

    Validate()

    Called from OnValidate() to validate the settings.

    Declaration
    void Validate()
    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)