docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetCategories

    GetCategories()

    Returns an array of all the Category instances of this catalog.

    Declaration
    public Category[] GetCategories()
    Returns
    Type Description
    Category[]

    An array of all the categories.

    Remarks

    Keep in mind that this method allocates an array. If you want to avoid allocations, please consider using GetCategories(ICollection<Category>) instead.

    GetCategories(ICollection<Category>)

    Fills in the given target collection with all the Category instances of this catalog, and returns their count. The target collection is cleared before being populated.

    Declaration
    public int GetCategories(ICollection<Category> target = null)
    Parameters
    Type Name Description
    ICollection<Category> target

    The target container of all the Category instances.

    Returns
    Type Description
    int

    The number of Category instances of this catalog.

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