docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method FindType

    FindType(Func<Type, bool>)

    Search all assemblies for a type that matches a given predicate delegate.

    Declaration
    public static Type FindType(Func<Type, bool> predicate)
    Parameters
    Type Name Description
    Func<Type, bool> predicate

    The predicate function. Must return true for the type that matches the search.

    Returns
    Type Description
    Type

    The first type for which predicate returns true, or null if no matching type exists.

    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)