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