Class CinemachineDollyCart | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class CinemachineDollyCart

    This is a very simple behaviour that constrains its transform to a CinemachinePath.
    It can be used to animate any objects along a path, or as a Follow target for Cinemachine Virtual Cameras.

    Inheritance
    MonoBehaviour
    CinemachineDollyCart
    Namespace: Cinemachine
    Syntax
    [DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
    public class CinemachineDollyCart : MonoBehaviour

    Fields

    m_Path

    The path to follow

    Declaration
    public CinemachinePathBase m_Path
    Field Value
    Type Description
    CinemachinePathBase

    m_Position

    The cart's current position on the path, in distance units

    Declaration
    public float m_Position
    Field Value
    Type Description
    System.Single

    m_PositionUnits

    How to interpret the Path Position

    Declaration
    public CinemachinePathBase.PositionUnits m_PositionUnits
    Field Value
    Type Description
    CinemachinePathBase.PositionUnits

    m_Speed

    Move the cart with this speed

    Declaration
    public float m_Speed
    Field Value
    Type Description
    System.Single

    m_UpdateMethod

    When to move the cart, if Velocity is non-zero

    Declaration
    public CinemachineDollyCart.UpdateMethod m_UpdateMethod
    Field Value
    Type Description
    CinemachineDollyCart.UpdateMethod
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023