Rect Transform¶
-
class RectTransform¶
A Unity engine Rect Transform for a UI object. See the Unity manual for more details.
-
std::tuple<double, double> position()¶
-
void set_position(std::tuple<double, double> value)¶
Position of the rectangles pivot point relative to the anchors.
-
std::tuple<double, double, double> local_position()¶
-
void set_local_position(std::tuple<double, double, double> value)¶
Position of the rectangles pivot point relative to the anchors.
-
std::tuple<double, double> size()¶
-
void set_size(std::tuple<double, double> value)¶
Width and height of the rectangle.
-
std::tuple<double, double> upper_right()¶
-
void set_upper_right(std::tuple<double, double> value)¶
Position of the rectangles upper right corner relative to the anchors.
-
std::tuple<double, double> lower_left()¶
-
void set_lower_left(std::tuple<double, double> value)¶
Position of the rectangles lower left corner relative to the anchors.
-
void set_anchor(std::tuple<double, double> value)¶
Set the minimum and maximum anchor points as a fraction of the size of the parent rectangle.
-
std::tuple<double, double> anchor_max()¶
-
void set_anchor_max(std::tuple<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.
-
std::tuple<double, double> anchor_min()¶
-
void set_anchor_min(std::tuple<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.
-
std::tuple<double, double> pivot()¶
-
void set_pivot(std::tuple<double, double> value)¶
Location of the pivot point around which the rectangle rotates, defined as a fraction of the size of the rectangle itself.
-
std::tuple<double, double, double, double> rotation()¶
-
void set_rotation(std::tuple<double, double, double, double> value)¶
Rotation, as a quaternion, of the object around its pivot point.
-
std::tuple<double, double, double> scale()¶
-
void set_scale(std::tuple<double, double, double> value)¶
Scale factor applied to the object in the x, y and z dimensions.
-
std::tuple<double, double> position()¶