docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetCategory

    GetCategory(string)

    Returns specified Category by CategoryDefinition Hash.

    Declaration
    public CategoryDefinition GetCategory(string categoryId)
    Parameters
    Type Name Description
    string categoryId

    The Id of the Id of the CategoryDefinition to find.

    Returns
    Type Description
    CategoryDefinition

    The requested CategoryDefinition, or null if an invalid Hash.

    GetCategory(int)

    Returns specified CategoryDefinition by its Hash.

    Declaration
    public CategoryDefinition GetCategory(int categoryHash)
    Parameters
    Type Name Description
    int categoryHash

    The Hash of the CategoryDefinition to find.

    Returns
    Type Description
    CategoryDefinition

    The requested CategoryDefinition, or null if not found.

    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)