.. default-domain:: http .. highlight:: json Rect Transform ============== .. _http-UI.RectTransform: .. rubric:: RectTransform A Unity engine Rect Transform for a UI object. See the `Unity manual `_ for more details. A ``RectTransform`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /ui/rect-transform/(id)/position Position of the rectangles pivot point relative to the anchors. :param id: The identifier of the :ref:`RectTransform ` object. :resjson tuple value: .. http:put:: /ui/rect-transform/(id)/position Position of the rectangles pivot point relative to the anchors. :param id: The identifier of the :ref:`RectTransform ` object. :reqjson tuple value: The new value. .. http:get:: /ui/rect-transform/(id)/local-position Position of the rectangles pivot point relative to the anchors. :param id: The identifier of the :ref:`RectTransform ` object. :resjson tuple value: .. http:put:: /ui/rect-transform/(id)/local-position Position of the rectangles pivot point relative to the anchors. :param id: The identifier of the :ref:`RectTransform ` object. :reqjson tuple value: The new value. .. http:get:: /ui/rect-transform/(id)/size Width and height of the rectangle. :param id: The identifier of the :ref:`RectTransform ` object. :resjson tuple value: .. http:put:: /ui/rect-transform/(id)/size Width and height of the rectangle. :param id: The identifier of the :ref:`RectTransform ` object. :reqjson tuple value: The new value. .. http:get:: /ui/rect-transform/(id)/upper-right Position of the rectangles upper right corner relative to the anchors. :param id: The identifier of the :ref:`RectTransform ` object. :resjson tuple value: .. http:put:: /ui/rect-transform/(id)/upper-right Position of the rectangles upper right corner relative to the anchors. :param id: The identifier of the :ref:`RectTransform ` object. :reqjson tuple value: The new value. .. http:get:: /ui/rect-transform/(id)/lower-left Position of the rectangles lower left corner relative to the anchors. :param id: The identifier of the :ref:`RectTransform ` object. :resjson tuple value: .. http:put:: /ui/rect-transform/(id)/lower-left Position of the rectangles lower left corner relative to the anchors. :param id: The identifier of the :ref:`RectTransform ` object. :reqjson tuple value: The new value. .. http:put:: /ui/rect-transform/(id)/anchor Set the minimum and maximum anchor points as a fraction of the size of the parent rectangle. :param id: The identifier of the :ref:`RectTransform ` object. :reqjson tuple value: The new value. .. http:get:: /ui/rect-transform/(id)/anchor-max The anchor point for the lower left corner of the rectangle defined as a fraction of the size of the parent rectangle. :param id: The identifier of the :ref:`RectTransform ` object. :resjson tuple value: .. http:put:: /ui/rect-transform/(id)/anchor-max The anchor point for the lower left corner of the rectangle defined as a fraction of the size of the parent rectangle. :param id: The identifier of the :ref:`RectTransform ` object. :reqjson tuple value: The new value. .. http:get:: /ui/rect-transform/(id)/anchor-min The anchor point for the upper right corner of the rectangle defined as a fraction of the size of the parent rectangle. :param id: The identifier of the :ref:`RectTransform ` object. :resjson tuple value: .. http:put:: /ui/rect-transform/(id)/anchor-min The anchor point for the upper right corner of the rectangle defined as a fraction of the size of the parent rectangle. :param id: The identifier of the :ref:`RectTransform ` object. :reqjson tuple value: The new value. .. http:get:: /ui/rect-transform/(id)/pivot Location of the pivot point around which the rectangle rotates, defined as a fraction of the size of the rectangle itself. :param id: The identifier of the :ref:`RectTransform ` object. :resjson tuple value: .. http:put:: /ui/rect-transform/(id)/pivot Location of the pivot point around which the rectangle rotates, defined as a fraction of the size of the rectangle itself. :param id: The identifier of the :ref:`RectTransform ` object. :reqjson tuple value: The new value. .. http:get:: /ui/rect-transform/(id)/rotation Rotation, as a quaternion, of the object around its pivot point. :param id: The identifier of the :ref:`RectTransform ` object. :resjson tuple value: .. http:put:: /ui/rect-transform/(id)/rotation Rotation, as a quaternion, of the object around its pivot point. :param id: The identifier of the :ref:`RectTransform ` object. :reqjson tuple value: The new value. .. http:get:: /ui/rect-transform/(id)/scale Scale factor applied to the object in the x, y and z dimensions. :param id: The identifier of the :ref:`RectTransform ` object. :resjson tuple value: .. http:put:: /ui/rect-transform/(id)/scale Scale factor applied to the object in the x, y and z dimensions. :param id: The identifier of the :ref:`RectTransform ` object. :reqjson tuple value: The new value.