Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

On the canvas, I have it set to "Screen Space - Camera" in pixel perfect mode with the Render Camera set to my main camera (the one rendering to texture).

On the canvas scaler settings, "UI Scale Mode" is set to "Constant Pixel Size".

This should cause your UI to not only stop scaling with the screen size, but also to render to the camera itself, therefore rendering to the target texture.

Thanks, it looks better now!

Although now my UI seems to not follow exactly the position of the camera, always 1-2 pixels behind:


I'm not entirely sure about that myself.  I'd have to say to check your scripts as well as your object hierarchy and canvas settings to see if somehow your canvas is being moved by something else.

I couldn't fix it, but the problem doesn't show up in standalone builds, so I'll leave it like that for now. Again thank you for your help !