# AddComponents(Entity, in ComponentTypeSet)

> Obsolete. Use EntityManager.AddComponent instead.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

## AddComponents(Entity, ComponentTypeSet)

> **Warning:**
>
> **Deprecated.** AddComponents() has been renamed to AddComponent(). AddComponents() will be removed in a future package release.

```csharp
public void AddComponents(Entity entity, in ComponentTypeSet componentTypeSet)
```

### Parameters

**** (\[Entity]\(/engine/7000.0/script-reference/unity/entities/entity)): The entity to modify.**** (\[ComponentTypeSet]\(/engine/7000.0/script-reference/unity/entities/componenttypeset)): The types of components to add.
