Version: 2017.2

SceneManager.MoveGameObjectToScene

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

参数

go 要移动的游戏对象。
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.