docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FitCamera

    FitCamera(Point3, CameraType, double, int, uint)

    Set the viewer matrices to adjust the camera to the scene

    Declaration
    public void FitCamera(Point3 direction, CameraType cameraType, double fov, int viewer = -1, uint fitToOccurrence = 0)
    Parameters
    Type Name Description
    Point3 direction

    Camera direction

    CameraType cameraType

    Camera type, Orthographic or Perspective

    double fov

    Field of view (perspective mode only)

    int viewer
    uint fitToOccurrence
    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)