Rect Transform#

public class RectTransform#

A Unity engine Rect Transform for a UI object. See the Unity manual for more details.

org.javatuples.Pair<Double, Double> getPosition()#
void setPosition(org.javatuples.Pair<Double, Double> value)#

Position of the rectangles pivot point relative to the anchors.

org.javatuples.Triplet<Double, Double, Double> getLocalPosition()#
void setLocalPosition(org.javatuples.Triplet<Double, Double, Double> value)#

Position of the rectangles pivot point relative to the anchors.

org.javatuples.Pair<Double, Double> getSize()#
void setSize(org.javatuples.Pair<Double, Double> value)#

Width and height of the rectangle.

org.javatuples.Pair<Double, Double> getUpperRight()#
void setUpperRight(org.javatuples.Pair<Double, Double> value)#

Position of the rectangles upper right corner relative to the anchors.

org.javatuples.Pair<Double, Double> getLowerLeft()#
void setLowerLeft(org.javatuples.Pair<Double, Double> value)#

Position of the rectangles lower left corner relative to the anchors.

void setAnchor(org.javatuples.Pair<Double, Double> value)#

Set the minimum and maximum anchor points as a fraction of the size of the parent rectangle.

org.javatuples.Pair<Double, Double> getAnchorMax()#
void setAnchorMax(org.javatuples.Pair<Double, Double> value)#

The anchor point for the lower left corner of the rectangle defined as a fraction of the size of the parent rectangle.

org.javatuples.Pair<Double, Double> getAnchorMin()#
void setAnchorMin(org.javatuples.Pair<Double, Double> value)#

The anchor point for the upper right corner of the rectangle defined as a fraction of the size of the parent rectangle.

org.javatuples.Pair<Double, Double> getPivot()#
void setPivot(org.javatuples.Pair<Double, Double> value)#

Location of the pivot point around which the rectangle rotates, defined as a fraction of the size of the rectangle itself.

org.javatuples.Quartet<Double, Double, Double, Double> getRotation()#
void setRotation(org.javatuples.Quartet<Double, Double, Double, Double> value)#

Rotation, as a quaternion, of the object around its pivot point.

org.javatuples.Triplet<Double, Double, Double> getScale()#
void setScale(org.javatuples.Triplet<Double, Double, Double> value)#

Scale factor applied to the object in the x, y and z dimensions.