docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddItem

    AddItem(TOCItem, int)

    Add a toc item after the item with the specified name. Currently only simple, one-level TOCs are implemented.

    Declaration
    public void AddItem(TOCItem newItem, int position = -1)
    Parameters
    Type Name Description
    TOCItem newItem

    The item to add

    int position

    The zero-based position of the new item. If unspecified or negative, the new item is added to the end.

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