??
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