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.
Create a new Render Texture (Assets → Create → Render Texture)
Create a quad in the main scene that will serve as the window you labelled “Minigame pop up.”
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.
Also in that scene, on the Main Camera, drag the render texture you made in step 1 into the “target texture.”
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.
Also in that Camera, click on the “culling mask” dropdown, click “Nothing,” and then “Minigame.”
In the main game scene, look at the main camera, click on the “culling mask” dropdown, and deselect “Minigame.”
Drag the render texture you made in step one onto the Mesh Renderer component of the quad you made in step 2.