Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

EntityManager.GetComponentTypes

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public NativeArray<ComponentType> GetComponentTypes(Entity entity, Allocator allocator);

Parameters

Parameter Description
entity The entity.
allocator The type of allocation for creating the NativeArray to hold the ComponentType objects.

Returns

NativeArray<ComponentType> An array of ComponentType containing all the types of components associated with the entity.

Description

Gets an entity's component types.


Declaration

public NativeArray<ComponentType> GetComponentTypes(Entity entity, AllocatorHandle allocator);

Parameters

Parameter Description
entity The entity.
allocator The type of allocation for creating the NativeArray to hold the ComponentType objects.

Returns

NativeArray<ComponentType> An array of ComponentType containing all the types of components associated with the entity.

Description

Gets an entity's component types.


Declaration

public NativeArray<ComponentType> GetComponentTypes(SystemHandle system, Allocator allocator);

Parameters

Parameter Description
system The system handle.
allocator The type of allocation for creating the NativeArray to hold the ComponentType objects.

Returns

NativeArray<ComponentType> An array of ComponentType containing all the types of components associated with the entity.

Description

Gets a system entity's component types.


Declaration

public NativeArray<ComponentType> GetComponentTypes(SystemHandle system, AllocatorHandle allocator);

Parameters

Parameter Description
system The system handle.
allocator The type of allocation for creating the NativeArray to hold the ComponentType objects.

Returns

NativeArray<ComponentType> An array of ComponentType containing all the types of components associated with the entity.

Description

Gets a system entity's component types.