docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetMatchingComponents

    GetMatchingComponents<TChildType>()

    Get an array of matching components.

    Declaration
    public TChildType[] GetMatchingComponents<TChildType>() where TChildType : class, TFilterType
    Returns
    Type Description
    TChildType[]

    The array of matching components.

    Type Parameters
    Name Description
    TChildType

    The type for which to search. Must inherit from or be TFilterType.

    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)