docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetAssignableTypes

    GetAssignableTypes(Type, List<Type>, Func<Type, bool>)

    Adds all types assignable to this one to a list, using an optional predicate test.

    Declaration
    public static void GetAssignableTypes(this Type type, List<Type> list, Func<Type, bool> predicate = null)
    Parameters
    Type Name Description
    Type type

    The type against which assignable types are matched.

    List<Type> list

    The list to which assignable types are appended.

    Func<Type, bool> predicate

    Custom delegate to filter the type list. Return false to ignore given type.

    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)