Class NativeArrayExtensions | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class NativeArrayExtensions

    Inheritance
    System.Object
    NativeArrayExtensions
    Namespace: Unity.Collections
    Syntax
    public static class NativeArrayExtensions

    Methods

    Contains<T, U>(NativeArray<T>, U)

    Declaration
    public static bool Contains<T, U>(this NativeArray<T> array, U value)
        where T : struct, IEquatable<U>
    Parameters
    Type Name Description
    NativeArray<T> array
    U value
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T
    U

    Contains<T, U>(NativeList<T>, U)

    Declaration
    public static bool Contains<T, U>(this NativeList<T> array, U value)
        where T : struct, IEquatable<U>
    Parameters
    Type Name Description
    NativeList<T> array
    U value
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T
    U

    IndexOf<T, U>(NativeArray<T>, U)

    Declaration
    public static int IndexOf<T, U>(this NativeArray<T> array, U value)
        where T : struct, IEquatable<U>
    Parameters
    Type Name Description
    NativeArray<T> array
    U value
    Returns
    Type Description
    System.Int32
    Type Parameters
    Name Description
    T
    U

    IndexOf<T, U>(NativeList<T>, U)

    Declaration
    public static int IndexOf<T, U>(this NativeList<T> array, U value)
        where T : struct, IEquatable<U>
    Parameters
    Type Name Description
    NativeList<T> array
    U value
    Returns
    Type Description
    System.Int32
    Type Parameters
    Name Description
    T
    U
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023