SceneManager.MoveGameObjectToScene

Switch to Manual
public static void MoveGameObjectToScene (GameObject go, SceneManagement.Scene scene);

Parameters

go 要移动的游戏对象。
scene 要移入游戏对象的场景。

Description

Move a GameObject from its current scene to a new Scene.

You can only move root GameObjects from one Scene to another. This means the GameObject to move must not be a child of any other GameObject in its Scene.