When have created a canvas in Unity and it is huge for some reason. Much bigger than the camera. When I create text inside canvas and scale it dow to fit my game, the text becomes blurry. I tried to search canvas tutorials but all of them use old Unity version, which is slighly different from current one. Edititing on Rect Transform is disabled and I can’t find a way to enable it.
Can anyone please tell me how to resize canvas so that it would fit my camera and so that the text wouldn’t get blurry.
Actualy I found an aswer myself, but forgot to note it here. However thanks a lot for your concern.
I did this:
Changed canvas rendering mode to “screen space - camera”, so that canvas would fit my camera. I am making 2D game so to me, it feels more natural to have it that way.
Then I made text mesh font size very big - 100 so that text outline would become solid and text very large.
Then changed Text Mesh transform component’s scale to fit the required size of my text.
I am not sure if it is the right way to do it, but that worked for me and I hope this will help others.
Don’t change scale. Change size of the rect transforms instead. Yes, the canvas is proportionally big compared to the camera, but this is not a problem at runtime as Unity makes sure everything fits on screen. You can’t change the rect transform of the canvas if its being driven by Screen Space - Overlay or Screen Space - Camera.