Version: 2017.1
public static void MergeScenes (SceneManagement.Scene sourceScene, SceneManagement.Scene destinationScene);

参数

sourceScene The scene that will be merged into the destination scene.
destinationScene Existing scene to merge the source scene into.

描述

This will merge the source scene into the destinationScene.

This function merges the contents of the source scene into the destination scene, and deletes the source scene. All GameObjects at the root of the source scene are moved to the root of the destination scene.
NOTE: This function is destructive: The source scene will be destroyed once the merge has been completed.