docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IndexOf

    IndexOf<T>(void*, int, T)

    Index of an element in a buffer.

    Declaration
    public static int IndexOf<T>(void* data, int count, T v) where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    void* data

    Data buffer.

    int count

    Number of elements.

    T v

    Element to test against.

    Returns
    Type Description
    int

    The first index of the provided element.

    Type Parameters
    Name Description
    T

    Data type.

    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)