{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class ListExtensions | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ListExtensions

    Extension methods for lists.

    Inheritance
    object
    ListExtensions
    Namespace: Unity.Collections
    Assembly: solution.dll
    Syntax
    public static class ListExtensions

    Methods

    Name Description
    RemoveAtSwapBack<T>(List<T>, int)

    Removes the value at an index.

    RemoveSwapBack<T>(List<T>, Predicate<T>)

    Finds and removes the first value which satisfies a predicate.

    RemoveSwapBack<T>(List<T>, T)

    Finds and removes the first occurrence of a particular value in the list.

    ToNativeArray<T>(List<T>, AllocatorHandle)

    Returns an array that is a copy of this list.

    ToNativeList<T>(List<T>, AllocatorHandle)

    Returns a copy of this list.

    In This Article
    Back to top
    Copyright © 2023 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)