(ix) unity4.6 learning Ugui Chinese document--------ugui Rect Transform

Source: Internet
Author: User

??

Hello everyone. I'm Sun Guangdong.? Reprint Please specify source: http://write.blog.csdn.net/postedit/38922399

More full content Please see my game Bull address: http://www.unitymanual.com/forum.php?mod=guide&view=my

This section goes into a lot of other depths. user interface features for unity.

1

rect Transform 2d 3D graphics transform

Properties


property:

function:

pos (X, Y and Z)

relative anchor anchors The position of the point.

width/height

left, Top, right, Bottom

Pos and width/height display.

Anchors Min

The lower-left anchor point of the rectangle defined as a small portion of the size of the parent rectangle.

0 ,0 corresponds to the bottom-left corner of the parent, 1. 1 is anchored to the upper-right corner of the parent.

Anchors Max

The upper- right anchor point of this rectangle defined as a small part of the size of the parent rectangle. 0. 0 is anchored to the lower-left corner of the parent, 1. 1 is anchored to the upper-right corner of the parent.

Pivot

Rectangle Rotates the position of the point around pivot Point. Defines the position of a pivot point within a fraction of the size of the rectangle itself.

0 ,0 corresponding to the lower left corner. and 1. 1 corresponds to the upper right corner.

Rotation

object surrounds its pivot Pivot dot along X , Y and Z the rotation angle of the axis.

scale

applied to the object in the X , Y and Z the scale in the dimension.


Description

Scaling andresizing

for layout purposes it is usually recommended that you adjust the UI Elements ofResizeInstead of doing it Scale . This resizing does not affect the font size, boundaries in the slice image. Wait a minute. Scaling The ability to use animated effects or other special effects when you want the entire element to be scaled, including fonts and borders to be able to set it. Remember that UI The elements become invisible assuming you give them a negative size. Negative scaling is supported, although (like other game objects) in this way, this can be used for example flipping objects.





(ix) unity4.6 learning Ugui Chinese document--------ugui Rect Transform

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.