Canvas aspect ratio

Hey,

My game has a 270p rendertexture that is stretched to fit any resolution while maintaining it’s 16:9 aspect ratio, the problem is that the UI Canvas has it’s anchors to the corners of the screen and goes out of the game screen on non 16:9 displays, is there a way to keep the UI inside the game view without rendering it to a rendertexture?

Ah just figured it out, there is a component called Aspect Ratio Fitter, that worked perfectly.