用户工具

站点工具


侧边栏

script:unityengine:classes:recttransform:recttransform

RectTransform 矩形变换

class in UnityEngine/Inherits from: Transform

Description 描述

Position, size, anchor and pivot information for a rectangle.

矩形的位置,大小,锚点和中心点信息。

RectTransforms are used for GUI but can also be used for other things. It's used to store and manipulate the position, size, and anchoring of a rectangle and supports various forms of scaling based on a parent RectTransform.

矩形变换是用于GUI但是也可以用于其他方面。它用于存储和巧妙处理矩形的位置,大小,锚点并且支持基于父矩形变换的各种缩放表单。

Variables 变量

anchoredPositionThe position of the pivot of this RectTransform relative to the anchor reference point.
该矩形变换相对于锚点参考点的中心点位置。
anchoredPosition3DThe 3D position of the pivot of this RectTransform relative to the anchor reference point.
该矩阵变换相对于锚点参考点的中心点的3D位置。
anchorMaxThe normalized position in the parent RectTransform that the upper right corner is anchored to.
该锚点在父矩阵变换中归一化位置,右上角是锚点。
anchorMinThe normalized position in the parent RectTransform that the lower left corner is anchored to.
在父矩阵变换上归一化位置,该锚点在左下角。
offsetMaxThe offset of the upper right corner of the rectangle relative to the upper right anchor.
矩形右上角相对于右上角锚点的偏移量。
offsetMinThe offset of the lower left corner of the rectangle relative to the lower left anchor.
矩形左下角相对于左下角锚点的偏移量。
piv
script/unityengine/classes/recttransform/recttransform.txt · 最后更改: 2016/08/02 05:29 (外部编辑)