docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FindCategory

    FindCategory(string)

    Returns specified CategoryAsset by its id.

    Declaration
    public CategoryAsset FindCategory(string id)
    Parameters
    Type Name Description
    string id

    The identifier of the CategoryAsset to find.

    Returns
    Type Description
    CategoryAsset

    If found, it returns the requested CategoryAsset, otherwise null.

    Exceptions
    Type Condition
    ArgumentException

    If the id parameter is null, empty, of whitespace.

    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)