docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method HasCategory

    HasCategory(Category)

    Tells whether or not the given category is within this CatalogItem instance.

    Declaration
    public bool HasCategory(Category category)
    Parameters
    Type Name Description
    Category category

    The Category instance. to search for.

    Returns
    Type Description
    bool

    Whether or not this CatalogItem instance has the specified Category included.

    Exceptions
    Type Condition
    ArgumentNullException

    If the category is null.

    HasCategory(string)

    Tells whether or not a Category instance with the given id is within this CatalogItem instance.

    Declaration
    public bool HasCategory(string id)
    Parameters
    Type Name Description
    string id

    The identifier of a Category instance.

    Returns
    Type Description
    bool

    Whether or not this CatalogItem instance has a Category with the given id included.

    Exceptions
    Type Condition
    ArgumentNullException

    If the id is null.

    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)