docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryGet

    TryGet(int, out T)

    Get the value of the level index.

    Declaration
    public bool TryGet(int index, out T value)
    Parameters
    Type Name Description
    int index

    The index of the level to get.

    T value

    Contains the value of the level when the level is found.

    default when:

    • The index is out of range
    Returns
    Type Description
    bool

    true when the value was evaluated, false when the value could not be evaluated.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)