# ISceneUndoScope.WithGameObjectChanges

## Overload 1

```csharp
ISceneUndoScope WithGameObjectChanges(IEnumerable<GameObject> objects, GameObjectUndoFlags flags)
```

### Parameters

- `objects` (`IEnumerable<GameObject>`)
- `flags` (`GameObjectUndoFlags`)

### Returns

`ISceneUndoScope`

## Overload 2

```csharp
ISceneUndoScope WithGameObjectChanges(GameObject gameObject, GameObjectUndoFlags flags)
```

### Parameters

- `gameObject` (`GameObject`)
- `flags` (`GameObjectUndoFlags`)

### Returns

`ISceneUndoScope`

Declared in [ISceneUndoScope](/api/ISceneUndoScope).
Assembly: `Sandbox.Engine`.
