docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetMatchingPreset

    GetMatchingPreset(Preset)

    Get the index of the physical preset that matches the template

    Declaration
    public int GetMatchingPreset(CinemachinePhysicalLensPalette.Preset p)
    Parameters
    Type Name Description
    CinemachinePhysicalLensPalette.Preset p

    Template holding the preset tsettings. Name is ignored.

    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)