docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method OnTargetObjectWarped

    OnTargetObjectWarped(CinemachineVirtualCameraBase, Transform, Vector3)

    This is called to notify the extension that a target got warped, so that the extension can update its internal state to make the camera also warp seamlessly. Base class implementation does nothing.

    Declaration
    public virtual void OnTargetObjectWarped(CinemachineVirtualCameraBase vcam, Transform target, Vector3 positionDelta)
    Parameters
    Type Name Description
    CinemachineVirtualCameraBase vcam

    Virtual camera to warp

    Transform target

    The object that was warped

    Vector3 positionDelta

    The amount the target's position changed

    In This Article
    Back to top
    Copyright © 2023 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)