docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method OnTargetObjectWarped

    OnTargetObjectWarped(Transform, Vector3)

    Call this to notify all virtual cameras that may be tracking a target that the target's position has suddenly warped to somewhere else, so that the virtual cameras can update their internal state to make the camera warp seamlessly along with the target.

    All virtual cameras are iterated so this call will work no matter how many 
    are tracking the target, and whether they are active or inactive.
    
    Declaration
    public static void OnTargetObjectWarped(Transform target, Vector3 positionDelta)
    Parameters
    Type Name Description
    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)