文档

Unity Engine

Download Unity

Unity Engine

HasChunkComponent<T>(Entity)

Checks whether the chunk containing an entity has a specific type of component.
阅读时间1 分钟最后更新于 19 天前

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.