docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method MoveTo

    MoveTo(T, int)

    Moves the given item in this list. If the given item is not in this list, this can be used to insert the item at the specified index.

    Declaration
    void MoveTo(T item, int newIndex)
    Parameters
    Type Name Description
    T item

    The item to move or add.

    int newIndex

    New index of the item.

    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)