docs.unity3d.com
Search Results for

    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).

    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)