docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetCategories

    GetCategories()

    Returns the categories in this catalog in an array.

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

    The categories in this catalog in an array.

    GetCategories(List<CategoryDefinition>)

    Fills the given list with all categories found in this catalog. Note: this returns the current state of categories. To ensure that there are no invalid or duplicate entries, the 'categories' list will always be cleared and 'recycled' (i.e. updated) with current data from the catalog.

    Declaration
    public void GetCategories(List<CategoryDefinition> categories)
    Parameters
    Type Name Description
    List<CategoryDefinition> categories

    The list to clear and fill with all categories.

    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)