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