文档

Unity Engine

Unity Engine

AddComponents(Entity, in ComponentTypeSet)

Obsolete. Use EntityManager.AddComponent instead.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

AddComponents(Entity, ComponentTypeSet)

警告
Deprecated. AddComponents() has been renamed to AddComponent(). AddComponents() will be removed in a future package release.
public void AddComponents(Entity entity, in ComponentTypeSet componentTypeSet)

Parameters

entity

The entity to modify.

componentTypeSet

The types of components to add.