The question is answered, right answer was accepted
How to scale canvas in Unity 5.2
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.
Thanks.
Hard to guess. Can you include screenshots of the canvas setup in the inspector?
If you want enable rect transform in canvas, you can change Render $$anonymous$$ode>World Space Pos X, Y can setting 0 now :)
Answer by Divole · Oct 12, 2015 at 04:51 PM
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.
Answer by Statement · Oct 11, 2015 at 01:13 PM
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.