Documentation

Unity Engine


Unity Engine


ComponentTypeSet

An immutable set of ComponentType values.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Struct
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public readonly struct ComponentTypeSet

Remarks

Max numbers of types is 15 (the capacity of FixedList64Bytes<T> of 32-bit integers).
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

Properties

Property

Description

LengthThe component type count

Methods

Method

Description

GetComponentTypeGets a ComponentType for the type stored at the index in the list.
GetTypeIndexGet the type index of a component type within this list