docs.unity3d.com
    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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023