docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddCamera

    AddCamera(Camera, out int)

    Creates a glTF camera based on a Unity camera

    Declaration
    bool AddCamera(Camera uCamera, out int cameraId)
    Parameters
    Type Name Description
    Camera uCamera

    Unity camera

    int cameraId

    glTF camera index

    Returns
    Type Description
    bool

    True if camera was successfully created, false otherwise

    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)