docs.unity.cn
    Show / Hide Table of Contents

    Constructor ComponentTypeSet

    ComponentTypeSet(ComponentType)

    Create an instance with one component type

    Declaration
    public ComponentTypeSet(ComponentType a)
    Parameters
    Type Name Description
    ComponentType a

    A component type

    ComponentTypeSet(ComponentType, ComponentType)

    Create an instance with two component types

    Declaration
    public ComponentTypeSet(ComponentType a, ComponentType b)
    Parameters
    Type Name Description
    ComponentType a

    A component type

    ComponentType b

    A component type

    ComponentTypeSet(ComponentType, ComponentType, ComponentType)

    Create an instance with three component types

    Declaration
    public ComponentTypeSet(ComponentType a, ComponentType b, ComponentType c)
    Parameters
    Type Name Description
    ComponentType a

    A component type

    ComponentType b

    A component type

    ComponentType c

    A component type

    ComponentTypeSet(ComponentType, ComponentType, ComponentType, ComponentType)

    Create an instance with five component types

    Declaration
    public ComponentTypeSet(ComponentType a, ComponentType b, ComponentType c, ComponentType d)
    Parameters
    Type Name Description
    ComponentType a

    A component type

    ComponentType b

    A component type

    ComponentType c

    A component type

    ComponentType d

    A component type

    ComponentTypeSet(ComponentType, ComponentType, ComponentType, ComponentType, ComponentType)

    Create an instance with five component types

    Declaration
    public ComponentTypeSet(ComponentType a, ComponentType b, ComponentType c, ComponentType d, ComponentType e)
    Parameters
    Type Name Description
    ComponentType a

    A component type

    ComponentType b

    A component type

    ComponentType c

    A component type

    ComponentType d

    A component type

    ComponentType e

    A component type

    ComponentTypeSet(ComponentType[])

    Create an instance from a list of component types

    Declaration
    [ExcludeFromBurstCompatTesting("Takes managed array")]
    public ComponentTypeSet(ComponentType[] types)
    Parameters
    Type Name Description
    ComponentType[] types

    The list of component types

    Exceptions
    Type Condition
    ArgumentException

    Thrown if the length of types exceeds the maximum ComponentTypes capacity (15).

    ComponentTypeSet(in FixedList128Bytes<ComponentType>)

    Create an instance from a list of component types

    Declaration
    public ComponentTypeSet(in FixedList128Bytes<ComponentType> types)
    Parameters
    Type Name Description
    FixedList128Bytes<ComponentType> types

    The list of component types

    Exceptions
    Type Condition
    ArgumentException

    Thrown if the length of types exceeds the maximum ComponentTypes capacity (15).

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