# UpdateScope()

> Creates a PersistentVariablesSource.BeginUpdating and PersistentVariablesSource.EndUpdating scope.

## Definition

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

```csharp
public static IDisposable UpdateScope()
```

### Returns

| Type                                                                     | Description                                                                                                                                                                             |
| ------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable) | A scope that calls [PersistentVariablesSource.EndUpdating](/engine/6000.7/script-reference/unity/smartstrings/extensions/persistentvariablessource/endupdating.md) when it is disposed. |
