extends Node3D # Called when the node enters the scene tree for the first time. func _ready(): var texture = $SubViewportMap.get_texture() # Retrieving the texture from Viewport $SpriteMap.texture = texture # Assign a texture to the Sprite3D node, to output the render result of the scene loaded to Viewport var texture2 = $SubViewportBars.get_texture() $BoxBarsBG/SpriteBars.texture = texture2