docs.unity.cn
    Show / Hide Table of Contents

    Struct ComponentTypes

    An immutable list of ComponentType values.

    Namespace: Unity.Entities
    Syntax
    public struct ComponentTypes
    Remarks

    Max numbers of types is 15 (the capacity of FixedListInt64).

    Values in the list are sorted by their internal type index.

    Only the types themselves are stored, not any access modes.

    Cannot contain multiple ComponentType values with the same type index (safety checks in the constructors will throw an exception).

    Constructors

    Name Description
    ComponentTypes(ComponentType)
    ComponentTypes(ComponentType, ComponentType)
    ComponentTypes(ComponentType, ComponentType, ComponentType)
    ComponentTypes(ComponentType, ComponentType, ComponentType, ComponentType)
    ComponentTypes(ComponentType, ComponentType, ComponentType, ComponentType, ComponentType)
    ComponentTypes(ComponentType[])

    Fields

    Name Description
    m_masks

    Properties

    Name Description
    Length

    Methods

    Name Description
    GetComponentType(Int32)

    Returns a ComponentType for the type stored at the index in the list.

    The returned ComponentType always has access mode ReadWrite.

    GetTypeIndex(Int32)
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Friday, May 28, 2021