Unity fifteen UGUI anchor

When doing UI, it would involve a different resolution, then how to match so many different resolutions and in line with the wishes of our own development. It can be done by setting the anchor.

And each of the UI elements can set a different anchor.
The anchor may be provided to the Unity several models, these models have generally enough. You can also adjust themselves Min, Max to set the position of the anchor point.
Here Insert Picture Description
Here Insert Picture Description
Below is an example:
two new Button, provided at their two corners. If at this time the anchor in the middle, then it is possible to encounter different resolution screen Button can only be rendered part. If the anchor is set in the upper left corner, then Button will be displayed. The screen will be set up starting point matching method based on the anchor.

I set the anchor Button in the upper left, Button1 is set in the upper right corner. Then the two buttons are displayed on any screen will.

Here Insert Picture Description

Published 56 original articles · won praise 24 · views 30000 +

Guess you like

Origin blog.csdn.net/u014196765/article/details/94332666