Suppose on the canvas there is a layer in the form of Image, occupying ~ 75% of the screen. Also outside the canvas there are several different images, too, of type Image, but of different sizes. Does Unity have a built-in ability to overlay them on a layer, adjusting in size? This is provided that the permissions may be different.

  • Attach the picture as it is and how it should be, but for the time being it is not clear from your explanations - KingPeas

1 answer 1

Despite the entire curvature of the question asked, I think I understood it.

  1. You can put the canvasScaler in Match Width and Height mode and put the slider in the middle there.
  2. After that, properly adjust the anchor on all elements of the canvas.

and get exactly what you need. This is the easiest way.

But it will cause a lot of difficulties if you have text elements on the canvas. Alas, this is the weak point of the unit.

Alas, I did not find an elegant way to achieve the same without problems with the text.

But I recently picked up hacks to fix problems with the text in this mode. Here I put the list: http://answers.unity3d.com/questions/1226551/ui-text-is-blurred-unity-535f.html