docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FromCamera

    FromCamera(Camera)

    Creates a new LensSettings, copying the values from the supplied Camera

    Declaration
    public static LensSettings FromCamera(Camera fromCamera)
    Parameters
    Type Name Description
    Camera fromCamera

    The Camera from which the FoV, near and far clip planes will be copied.

    Returns
    Type Description
    LensSettings

    The LensSettings as extracted from the supplied Camera

    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)