docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryAdd

    TryAdd(in T)

    Try to add a value in the list.

    Declaration
    public bool TryAdd(in T value)
    Parameters
    Type Name Description
    T value

    A reference to the value to add.

    Returns
    Type Description
    bool
    true
    when the value was added,
    false
    when the value was not added because the capacity was reached.
    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)