docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Get

    Get<T>(string, T)

    Get a value with key of type T, or return the fallback value if no matching key is found.

    Declaration
    T Get<T>(string key, T fallback = default)
    Parameters
    Type Name Description
    string key

    The settings key.

    T fallback

    If no key with a value of type T is found, this value is returned.

    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Type of value to search for.

    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)