ドキュメント

Unity Engine

Download Unity

Unity Engine

ComponentTypeSet

An immutable set of ComponentType values.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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