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.
1 answer
Despite the entire curvature of the question asked, I think I understood it.
- You can put the canvasScaler in Match Width and Height mode and put the slider in the middle there.
- 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
|