docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetPresetIndex

    GetPresetIndex(string)

    Get the index of the first physical preset that matches the preset name

    Declaration
    public int GetPresetIndex(string presetName)
    Parameters
    Type Name Description
    string presetName

    Name of the preset

    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)