docs.unity.cn
    Show / Hide Table of Contents

    Method ConstructSystem

    ConstructSystem(Type)

    Construct a System from a Type. Uses the same list in GetSystems(WorldSystemFilterFlags, WorldSystemFilterFlags).

    Declaration
    public static ComponentSystemBase ConstructSystem(Type systemType)
    Parameters
    Type Name Description
    Type systemType

    The system type.

    Returns
    Type Description
    ComponentSystemBase

    Returns the new system.

    ConstructSystem<T>()

    Creates an instance of a system of type T.

    Declaration
    public static T ConstructSystem<T>()
        where T : ComponentSystemBase
    Returns
    Type Description
    T

    Returns the newly created system instance

    Type Parameters
    Name Description
    T

    System type to create

    ConstructSystem<T>(Type)

    Creates an instance of a system of System.Type.

    Declaration
    public static T ConstructSystem<T>(Type systemType)
        where T : ComponentSystemBase
    Parameters
    Type Name Description
    Type systemType

    System type to create

    Returns
    Type Description
    T

    Returns the newly created system instance

    Type Parameters
    Name Description
    T

    System type to create

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023