# Sandbox.DooEngine.SetGlobalVariable

```csharp
void SetGlobalVariable(string name, object value)
```

Sets a global variable that is accessible to all Doo scripts in this scene.

### Parameters

- `name` (`string`)
- `value` (`object`)

Declared in [Sandbox.DooEngine](/api/Sandbox.DooEngine).
Assembly: `Sandbox.Engine`.
