docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method IndexOf

    IndexOf(void*)

    Returns the index of the first occurrence of a specific pointer in the list.

    Declaration
    public int IndexOf(void* ptr)
    Parameters
    Type Name Description
    void* ptr

    The pointer to search for in the list.

    Returns
    Type Description
    int

    The index of the first occurrence of the pointer. Returns -1 if it is not found in the 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)