Documentation

Unity Engine


Unity Engine


HasChunkComponent<T>(Entity)

Checks whether the chunk containing an entity has a specific type of component.
Read time 1 minuteLast updated 3 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public bool HasChunkComponent<T>(Entity entity)

Parameters

entity

The Entity object.

Returns

Type

Description

boolTrue, if the chunk containing the specified entity has the component.

Remarks

Always returns false for an entity that has been destroyed.