Version: 2017.1

SceneManager.MoveGameObjectToScene

切换到手册
public static void MoveGameObjectToScene (GameObject go, SceneManagement.Scene scene);

参数

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

描述

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.