ドキュメント

Unity Engine

Download Unity

Unity Engine

GetComponentTypes(Entity, AllocatorHandle)

Gets the component types of an entity.
読み終わるまでの所要時間 1 分最終更新 2日前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public static NativeArray<ComponentType> GetComponentTypes(Entity entity, AllocatorManager.AllocatorHandle allocator)

Parameters

entity

The entity.

The allocator for the returned array.

Returns

Type

Description

NativeArray<ComponentType>The entity's component types.

Remarks

The types come in the order of the entity's archetype, which is stable while the archetype is unchanged.