# Add(string, VariablesGroupAsset)

> Adds a global variable group to the source.

## Definition

* **Type:** Method
* **Namespace:** [Unity.SmartStrings.Extensions](/engine/6000.7/script-reference/unity/smartstrings/extensions.md)
* **Assembly:** UnityEngine.SmartStringsModule

```csharp
public void Add(string name, VariablesGroupAsset group)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the group to add.**** (\[VariablesGroupAsset]\(/engine/6000.7/script-reference/unity/smartstrings/persistentvariables/variablesgroupasset)): The group to add.
