So, I have a camera set up and rendering to a texture. I want to use that render texture in the new GUI system . However, if I set the viewport width/height to anything than 1/1, the render texture is either “clipped” or displays garbage. I tried setting it to 1/1.5 and 0.5/1 respectively to get a wide viewport.
Am I missing something here, is there another control for the camera view geometry? If not, how do I set the camera viewport to be wide, and pass that to a render texture and have it look as desired? I can’t seem to pull it off.
Well, OK. I did it, but I don’t get why it works the way it does. I set the width/height of the cam to 1/1, but set the rendertexture to 512x256. That gave me a wide texture which looks good.
However, I don’t understand the logic, and what if I want another relationship? Say, 1:1.85 or something?
Sorry , should have asked if it could be done without code. In the future, maybe it could be a good idea to have the camera aspect exposed in the editor for situations like this?
Anyways, will code my solution. No worries.
Thanks for the help!