# MoveGameObjectToScene(GameObject, Scene, string)

> Move a GameObject from its current Scene to a new Scene. It is required that the GameObject is at the root of its current Scene.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static void MoveGameObjectToScene(GameObject go, Scene scene, string name)
```

### Parameters

**** (\[GameObject]\(/engine/6000.7/script-reference/unityengine/gameobject)): GameObject to move.**** (\[Scene]\(/engine/6000.7/script-reference/unityengine/scenemanagement/scene)): Scene to move the GameObject into.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the undo action.
