文档

Unity Engine

Unity Engine

GetComponentCount(Entity)

Gets the number of component types associated with an entity.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public int GetComponentCount(Entity entity)

Parameters

entity

The entity.

Returns

Type

Description

intThe number of components.