# CopyTo(KeyValuePair<string, VariablesGroupAsset>[], int)

> Copies all global variable groups into the provided array starting at arrayIndex.

## Definition

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

```csharp
public void CopyTo(KeyValuePair<string, VariablesGroupAsset>[] array, int arrayIndex)
```

### Parameters

**** (\[KeyValuePair\<string, VariablesGroupAsset>\[]]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair)): The array to copy the global variables into.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index to start copying into.
