(9) unity4.6 learn Ugui Chinese Document ------- refer to-UGUI Rect Transform, ugui-ugui

Source: Internet
Author: User

(9) unity4.6 learn Ugui Chinese Document ------- refer to-UGUI Rect Transform, ugui-ugui
Zookeeper

Hello everyone, I am Sun Guangdong. Reprinted please indicate the source: http://write.blog.csdn.net/postedit/38922399

More comprehensive content please see my game pretty cool address: http://www.unitymanual.com/forum.php? Mod = guide & view = my

This section introduces more details about the unity user interface functions.

1. Rect Transform

The Rect Transform component corresponds to the Transform component of 2D and 3D images. It is used to specify the size, position, and rotation controls in the user interface system.

Properties


Property:

Function:

Pos (X, Y and Z)

The position of the rectangular pivot vertex of the anchors.

Width/Height

Width and height of a rectangle

Left, Top, Right, Bottom

The position of the edge of the rectangle relative to its anchor. This can be considered as filling the rectangle defined by the anchor. When the anchor is separated (see below), the Pos and Width/Height are displayed instead.

Anchors Min

As a small part of the size of the parent rectangle, it defines the lower left corner of the rectangle. 0, 0 corresponds to the anchor to the lower left corner of the parent level, and 1, 1 corresponds to anchor to the upper right corner of the parent level.

Anchors Max

As a small part of the size of the parent rectangle. 0, 0 corresponds to the anchor to the lower left corner of the parent level, and 1, 1 corresponds to anchor to the upper right corner of the parent level.

Bytes

The position of the vertex that the rectangle rotates around. It is defined as a fraction of its size as the position of the pivot point. 0, 0 corresponds to the lower left corner, and 1, 1 corresponds to the upper right corner.

Rotation

The Rotation Angle of an object around its pivot vertex along the X, Y, and Z axes.

Scale

Apply to the scaling ratio of the object in the X, Y, and Z dimensions.


Description

Scaling andresizing

For Layout purposes, we recommend that you adjust the resize of the UI element rather than scale it. This resizing does not affect the font size, boundary in the sliced image, and so on. Scaling can be used for animation effects or other special effects, when you want to scale the entire element, including font and border, you can set it. Remember that the UI elements become invisible if you give them a negative size. Negative scaling is supported, although (like other game objects), this can be used, for example, to flip an object.






Ugui Unity3d version is available

Don't change the junk weapons of 43. I'm so distressed. It's not so bad !!!

Ugui! Y a o, A person holding A computer at home, watching movies, and more, waiting for A woman to come with A camera!

Buy an inflatable doll ~~~~ Convenience and enrichment!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.