docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ConstructTypesDerivedFrom

    ConstructTypesDerivedFrom<T>()

    Construct instance of all types derived from T.

    Declaration
    public static IEnumerable<T> ConstructTypesDerivedFrom<T>()
    Returns
    Type Description
    IEnumerable<T>

    Enumeration of constructed instance of all types derived from T.

    Type Parameters
    Name Description
    T

    The derived type.

    ConstructTypesDerivedFrom<T>(Func<Type, bool>)

    Construct instance of all types derived from T that satisfies the filtering function.

    Declaration
    public static IEnumerable<T> ConstructTypesDerivedFrom<T>(Func<Type, bool> filter)
    Parameters
    Type Name Description
    Func<Type, bool> filter

    The filtering function.

    Returns
    Type Description
    IEnumerable<T>

    Enumeration of constructed instance of all types derived from T.

    Type Parameters
    Name Description
    T

    The derived type.

    ConstructTypesDerivedFrom<T>(Func<T, bool>)

    Construct instance of all types derived from T that satisfies the condition function.

    Declaration
    public static IEnumerable<T> ConstructTypesDerivedFrom<T>(Func<T, bool> condition)
    Parameters
    Type Name Description
    Func<T, bool> condition

    The condition function.

    Returns
    Type Description
    IEnumerable<T>

    Enumeration of constructed instance of all types derived from T.

    Type Parameters
    Name Description
    T

    The derived type.

    ConstructTypesDerivedFrom<T>(Func<Type, bool>, Func<T, bool>)

    Construct instance of all types derived from T that satisfies both the filtering and condition functions.

    Declaration
    public static IEnumerable<T> ConstructTypesDerivedFrom<T>(Func<Type, bool> filter, Func<T, bool> condition)
    Parameters
    Type Name Description
    Func<Type, bool> filter

    The filtering function.

    Func<T, bool> condition

    The condition function.

    Returns
    Type Description
    IEnumerable<T>

    Enumeration of constructed instance of all types derived from T.

    Type Parameters
    Name Description
    T

    The derived 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)