docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetMatchingPreset

    GetMatchingPreset(float)

    Get the index of the preset that matches the lens settings

    Declaration
    public int GetMatchingPreset(float verticalFOV)
    Parameters
    Type Name Description
    float verticalFOV

    Vertical field of view

    Returns
    Type Description
    int

    the preset index, or -1 if no matching preset

    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)