docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Property Camera

    Camera

    The Camera used to render the scene from the point of view of the XR device. Must be a child of the GameObject containing this XROrigin component.

    Declaration
    public Camera Camera { get; set; }
    Property Value
    Type Description
    Camera
    Remarks

    You can add a UnityEngine.InputSystem.XR.TrackedPoseDriver component to the Camera GameObject to update its position and rotation using tracking data from the XR device. You must update the Camera position and rotation using tracking data from the XR device.

    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)