Rect Transform component

As stated earlier, UI elements do not have the standard Transform component, they have the Rect Transform component. If you compare it to a standard Transform component, you will see that it has quite a few more properties.

You can use it to change the position, the rotation, and the scale, just as you can with the Transform, but there are the added properties of Anchor Presets (represented by the square image in the top left corner), two values for determining dimension: Anchor Min and Max points, and Pivot point.

It's important to note that the Scale value is considered the Local Scale. If you rescale the object ...

Get Mastering UI Development with Unity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.