Load other scene as a within pop up window.

We need to add some small minigame to another game as a plugin.

i.e. You play some match 3 game. And you run out of mooves. You press button “try to win mooves”.
Pop up appears and you can play some minigame that is allredy implemented in other scene.

When minigame ends pop up is removed and main game is resumed.

What am actually asking is how we can show other scene in pop up. Main scene should not be affected with anything from subscene.

.

I have tried to load additional scene by:

SceneManager.LoadScene(“Game”, LoadSceneMode.Additive);

but it just add everything from two scenes in one space.

Four years late, but here’s an answer:

  1. Create a new Render Texture (Assets → Create → Render Texture)
  2. Create a quad in the main scene that will serve as the window you labelled “Minigame pop up.”
  3. In the scene you created that contains all the minigame stuff, create a new layer called “Minigame,” and set everything in the minigame scene to be in this layer.
  4. Also in that scene, on the Main Camera, drag the render texture you made in step 1 into the “target texture.”
  5. If you have any UI elements in the minigame scene, go to the canvas, and change the render mode to “World Space.” This will definitely screw up the layout of your UI, so adjust accordingly, usually with position and scale.
  6. Also in that Camera, click on the “culling mask” dropdown, click “Nothing,” and then “Minigame.”
  7. In the main game scene, look at the main camera, click on the “culling mask” dropdown, and deselect “Minigame.”
  8. Drag the render texture you made in step one onto the Mesh Renderer component of the quad you made in step 2.

Hope that works for you!