Camera(2D) to see what happens outside of the screen

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By whiteshampoo


i want to make a texture for something like a monitor, to see what happens outside of the current screen.
I tried stuff with viewports and cameras, but i failed at getting a texture from this. I also only need a fraction of the camera/viewport size. when i get the texture from the viewport, i only get what i’m actually seeing, so this is also not working…

I don’t need a complete solution, just a hint how i can do this.
Need this for 2D.

:bust_in_silhouette: Reply From: rakkarage

if it is a simple texture or few pixels you wanna show you can just use an Image an ImageTexture and a TextureRect and set_pixel and get_pixel
eg. draw mini-map with pixels

if it is an actual view you wanna show you can use a viewport container, a viewport and a camera you can set the “Stretch Shrink” property of the viewport controller to make it a ‘fraction’ and adjust viewport properties