docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Remove

    Remove(T)

    Remove an item from the list.

    Declaration
    public bool Remove(T item)
    Parameters
    Type Name Description
    T item

    Item to remove from the list.

    Returns
    Type Description
    bool

    True if the item was successfuly removed. False otherise.

    Implements
    ICollection<T>.Remove(T)

    Remove(params T[])

    Remove multiple items from the list.

    Declaration
    public int Remove(params T[] items)
    Parameters
    Type Name Description
    T[] items

    Items to remove from the list.

    Returns
    Type Description
    int

    The number of removed items.

    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)