# SetSingleton<T>(T)

> Sets the value of a singleton component.

## Definition

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

> **Warning:**
>
> **Deprecated.** Use SystemAPI.SetSingleton instead (RemovedAfter Entities 1.0)

```csharp
public void SetSingleton<T>(T value) where T : unmanaged, IComponentData
```

### Parameters

**** (T): A component containing the value to assign to the singleton.

### Remarks

Additional Resources: [EntityQuery.SetSingleton](/engine/7000.0/script-reference/unity/entities/entityquery/setsingleton.md)
