# Sandbox.Gizmo.ObjectScope

```csharp
static System.IDisposable ObjectScope(T obj, Transform tx)
```

Create a new scope - any changes to colors and transforms will be stored
and reverted when exiting the scope.

### Parameters

- `obj` (`T`)
- `tx` (`Transform`)

### Returns

`System.IDisposable`

Declared in [Sandbox.Gizmo](/api/Sandbox.Gizmo).
Assembly: `Sandbox.Engine`.
