UnityEngine.SceneManagement.SceneManager.MergeScenes C# (CSharp) Method

MergeScenes() public static method

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.

public static MergeScenes ( Scene sourceScene, Scene destinationScene ) : void
sourceScene Scene The scene that will be merged into the destination scene.
destinationScene Scene Existing scene to merge the source scene into.
return void
        public static void MergeScenes(Scene sourceScene, Scene destinationScene)
        {
            INTERNAL_CALL_MergeScenes(ref sourceScene, ref destinationScene);
        }