# Sandbox.Gizmo.Scope

## Overload 1

```csharp
static System.IDisposable Scope(string path, Transform tx)
```

Create a new scope - any changes to colors and transforms will be stored
and reverted when exiting the scope.

### Parameters

- `path` (`string`)
- `tx` (`Transform`)

### Returns

`System.IDisposable`

## Overload 2

```csharp
static System.IDisposable Scope(string path, Vector3 position)
```

Create a new scope - any changes to colors and transforms will be stored
and reverted when exiting the scope.

### Parameters

- `path` (`string`)
- `position` (`Vector3`)

### Returns

`System.IDisposable`

## Overload 3

```csharp
static System.IDisposable Scope(string path, Vector3 position, Rotation rotation, float scale = 1)
```

Create a new scope - any changes to colors and transforms will be stored
and reverted when exiting the scope.

### Parameters

- `path` (`string`)
- `position` (`Vector3`)
- `rotation` (`Rotation`)
- `scale` (`float`), default `1`

### Returns

`System.IDisposable`

## Overload 4

```csharp
static System.IDisposable Scope(string path = null)
```

Create a new scope - any changes to colors and transforms will be stored
and reverted when exiting the scope.

### Parameters

- `path` (`string`), default `null`

### Returns

`System.IDisposable`

Declared in [Sandbox.Gizmo](/api/Sandbox.Gizmo).
Assembly: `Sandbox.Engine`.
