docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Remove

    Remove(T)

    Removes the first occurrence of a specific object from the DynamicArray.

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

    The object to remove from the DynamicArray. The value can be null for reference types.

    Returns
    Type Description
    bool

    true if item is successfully removed; otherwise, false. This method also returns false if item was not found in the DynamicArray.

    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)