docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddBefore

    AddBefore(string, TOCItem)

    Adds a new TOC entry before an existing entry.

    Declaration
    public void AddBefore(string sectionHref, TOCItem newItem)
    Parameters
    Type Name Description
    string sectionHref

    The href field of the existing entry.

    TOCItem newItem

    The entry to add.

    Remarks

    Adds the new entry to the end if the existing entry is not found.

    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)