Hi,
I’m sure that this is really simple but I cannot find a solution and I am a complete beginner.
In the scene editor I created a very simple 2d scene with a canvas and inside it some text boxes.
The textboxes are TextMeshPro objects.
I would like to set one textbox to be 20% of the width of the canvas and 50% of the height of it, and to keep these proportions if I change the dimensions of the canvas.
To do this, in the Anchors presets I select the “stretch” option and put the anchors to the corners of the parent canvas. Then I set the X scale to 0.2 and the Y scale to 0.5. This method seems to work but the problem is that also the text is scaled both in the X and Y directions and it looks weird.
Is anyway to avoid the scaling of the text or is any other method to achieve what I need?
Thanks for your help