Rect Transform#
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).
- GET /ui/rect-transform/(id)/position#
Position of the rectangles pivot point relative to the anchors.
- Parameters:
id – The identifier of the RectTransform object.
- Response JSON Object:
value (tuple<double, double>)
- PUT /ui/rect-transform/(id)/position#
Position of the rectangles pivot point relative to the anchors.
- Parameters:
id – The identifier of the RectTransform object.
- Request JSON Object:
value (tuple<double, double>) – The new value.
- GET /ui/rect-transform/(id)/local-position#
Position of the rectangles pivot point relative to the anchors.
- Parameters:
id – The identifier of the RectTransform object.
- Response JSON Object:
value (tuple<double, double, double>)
- PUT /ui/rect-transform/(id)/local-position#
Position of the rectangles pivot point relative to the anchors.
- Parameters:
id – The identifier of the RectTransform object.
- Request JSON Object:
value (tuple<double, double, double>) – The new value.
- GET /ui/rect-transform/(id)/size#
Width and height of the rectangle.
- Parameters:
id – The identifier of the RectTransform object.
- Response JSON Object:
value (tuple<double, double>)
- PUT /ui/rect-transform/(id)/size#
Width and height of the rectangle.
- Parameters:
id – The identifier of the RectTransform object.
- Request JSON Object:
value (tuple<double, double>) – The new value.
- GET /ui/rect-transform/(id)/upper-right#
Position of the rectangles upper right corner relative to the anchors.
- Parameters:
id – The identifier of the RectTransform object.
- Response JSON Object:
value (tuple<double, double>)
- PUT /ui/rect-transform/(id)/upper-right#
Position of the rectangles upper right corner relative to the anchors.
- Parameters:
id – The identifier of the RectTransform object.
- Request JSON Object:
value (tuple<double, double>) – The new value.
- GET /ui/rect-transform/(id)/lower-left#
Position of the rectangles lower left corner relative to the anchors.
- Parameters:
id – The identifier of the RectTransform object.
- Response JSON Object:
value (tuple<double, double>)
- PUT /ui/rect-transform/(id)/lower-left#
Position of the rectangles lower left corner relative to the anchors.
- Parameters:
id – The identifier of the RectTransform object.
- Request JSON Object:
value (tuple<double, double>) – The new value.
- PUT /ui/rect-transform/(id)/anchor#
Set the minimum and maximum anchor points as a fraction of the size of the parent rectangle.
- Parameters:
id – The identifier of the RectTransform object.
- Request JSON Object:
value (tuple<double, double>) – The new value.
- 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.
- Parameters:
id – The identifier of the RectTransform object.
- Response JSON Object:
value (tuple<double, double>)
- 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.
- Parameters:
id – The identifier of the RectTransform object.
- Request JSON Object:
value (tuple<double, double>) – The new value.
- 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.
- Parameters:
id – The identifier of the RectTransform object.
- Response JSON Object:
value (tuple<double, double>)
- 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.
- Parameters:
id – The identifier of the RectTransform object.
- Request JSON Object:
value (tuple<double, double>) – The new value.
- 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.
- Parameters:
id – The identifier of the RectTransform object.
- Response JSON Object:
value (tuple<double, double>)
- 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.
- Parameters:
id – The identifier of the RectTransform object.
- Request JSON Object:
value (tuple<double, double>) – The new value.
- GET /ui/rect-transform/(id)/rotation#
Rotation, as a quaternion, of the object around its pivot point.
- Parameters:
id – The identifier of the RectTransform object.
- Response JSON Object:
value (tuple<double, double, double, double>)
- PUT /ui/rect-transform/(id)/rotation#
Rotation, as a quaternion, of the object around its pivot point.
- Parameters:
id – The identifier of the RectTransform object.
- Request JSON Object:
value (tuple<double, double, double, double>) – The new value.
- GET /ui/rect-transform/(id)/scale#
Scale factor applied to the object in the x, y and z dimensions.
- Parameters:
id – The identifier of the RectTransform object.
- Response JSON Object:
value (tuple<double, double, double>)
- PUT /ui/rect-transform/(id)/scale#
Scale factor applied to the object in the x, y and z dimensions.
- Parameters:
id – The identifier of the RectTransform object.
- Request JSON Object:
value (tuple<double, double, double>) – The new value.