Graphics.Blit scale

Hey,

Just learning about Blit and wondering if it’s possible to scale it so that it doesn’t stretch to fill the whole screen and stay at a fixed aspect ratio instead?

My game is rendered to a low res rendertexture and then blitted to screen, but i want it to stay 16:9 regardless of screen resolution.

Thanks

In short: No. Graphics.Blit will always draw a fullscreen rectangle. So it will always fill the entire screen / area of the destination. RenderTexture.

However you can scale the incoming texture by using the scale parameter. So you can render a part of the source texture to the full destination texture.