docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method MoveCameraToWorldLocation

    MoveCameraToWorldLocation(Vector3)

    This function moves the camera to the world location provided by desiredWorldLocation. It does this by moving the XR Origin object so that the camera's world location matches the desiredWorldLocation

    Declaration
    public bool MoveCameraToWorldLocation(Vector3 desiredWorldLocation)
    Parameters
    Type Name Description
    Vector3 desiredWorldLocation

    the position in world space that the camera should be moved to

    Returns
    Type Description
    bool

    Returns true if the move is performed. Otherwise, returns false.

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