> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/2.3/api/csharp/yarn.unity/yarn.unity.variablestoragebehaviour/yarn.unity.variablestoragebehaviour.setallvariables.md).

# SetAllVariables(FloatDictionary,StringDictionary,BoolDictionary,bool)

Method in [VariableStorageBehaviour](/2.3/api/csharp/yarn.unity/yarn.unity.variablestoragebehaviour.md)

## Summary

Provides a unified interface for loading many variables all at once. Will override anything already in the variable storage.

```csharp
public abstract void SetAllVariables(FloatDictionary floats, StringDictionary strings, BoolDictionary bools, bool clear = true);
```

## Parameters

| Name                                                            | Description                                                                                        |
| --------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| `bool` clear                                                    | Should the load also wipe the storage. Defaults to true so all existing variables will be cleared. |
| `System.Collections.Generic.Dictionary<string, float>` floats   |                                                                                                    |
| `System.Collections.Generic.Dictionary<string, string>` strings |                                                                                                    |
| `System.Collections.Generic.Dictionary<string, bool>` bools     |                                                                                                    |
