.. default-domain:: java .. highlight:: java .. package:: krpc.client.services.UI Rect Transform ============== .. type:: public class RectTransform A Unity engine Rect Transform for a UI object. See the `Unity manual `_ for more details. .. method:: org.javatuples.Pair getPosition() .. method:: void setPosition(org.javatuples.Pair value) Position of the rectangles pivot point relative to the anchors. .. method:: org.javatuples.Triplet getLocalPosition() .. method:: void setLocalPosition(org.javatuples.Triplet value) Position of the rectangles pivot point relative to the anchors. .. method:: org.javatuples.Pair getSize() .. method:: void setSize(org.javatuples.Pair value) Width and height of the rectangle. .. method:: org.javatuples.Pair getUpperRight() .. method:: void setUpperRight(org.javatuples.Pair value) Position of the rectangles upper right corner relative to the anchors. .. method:: org.javatuples.Pair getLowerLeft() .. method:: void setLowerLeft(org.javatuples.Pair value) Position of the rectangles lower left corner relative to the anchors. .. method:: void setAnchor(org.javatuples.Pair value) Set the minimum and maximum anchor points as a fraction of the size of the parent rectangle. .. method:: org.javatuples.Pair getAnchorMax() .. method:: void setAnchorMax(org.javatuples.Pair value) The anchor point for the lower left corner of the rectangle defined as a fraction of the size of the parent rectangle. .. method:: org.javatuples.Pair getAnchorMin() .. method:: void setAnchorMin(org.javatuples.Pair value) The anchor point for the upper right corner of the rectangle defined as a fraction of the size of the parent rectangle. .. method:: org.javatuples.Pair getPivot() .. method:: void setPivot(org.javatuples.Pair value) Location of the pivot point around which the rectangle rotates, defined as a fraction of the size of the rectangle itself. .. method:: org.javatuples.Quartet getRotation() .. method:: void setRotation(org.javatuples.Quartet value) Rotation, as a quaternion, of the object around its pivot point. .. method:: org.javatuples.Triplet getScale() .. method:: void setScale(org.javatuples.Triplet value) Scale factor applied to the object in the x, y and z dimensions.