Can I instance a scene in a sub-viewport?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By BFGames
:warning: Old Version Published before Godot 3 was released.

Hi all,

I’m working on implementing a mini-game within my current game and was hoping that I could make this as an in-world object, using a viewport to display the mini-game when a button is pressed.

I’ve taken a look at the documentation here Using Viewports — Godot Engine (stable) documentation in English , but for render targets displayed on a sub-viewport, it only gives an example of using a sprite, and the demo projects have all been updated to 3.0 (I’m still on 2.1.4).

Is there a way to instance a mini-game scene in this way, or would it be best to use a combination of animation and scene switching to achieve the desired effect?

Any advice would be greatly appreciated!