As the name suggests, Position, Rotation, Scale adjusts the position, rotation, and scale of the target object. By default it operates on screen coordinates, but it can be configured to adjust the target object using local coordinates (relative to the object’s parent).
Mode
Specifies whether to set or get position, rotation, and scale values. Options are:
- Set position, rotation, or scale - Sets the transform of the target object
- Save position, rotation, or scale to variables - Saves the current position, rotation, or scale of the target object to variables
Target object
The object to move, rotate, or scale.
Set position
If checked, the position of the Target object will be set to Position X, Position Y.
Position X
The horizontal position to move the object to.
Position Y
The vertical position to move the object to.
Set Rotation
If checked, the rotation of the Target object will be set to Rotation.
Rotation
The angle the object should be rotated to, in degrees.
Set scale
If checked, the scale of the Target object will be set to Scale X x Scale Y.
Consider
Specifies how the size of the object is set or saved. Options are:
- Scale - Sets or saves the scale of the object
- Dimensions - Sets or saves the width and height of the object in pixels
Scale X
The horizontal scale of the object.
Scale Y
The vertical scale of the object.
Width
The width of the object in pixels.
Height
The height of the object in pixels.
Anchor
The point to hold in place when doing a Dimensions resize. Defaults to ‘Pivot’ by default, meaning a resize will cause the width and height to grow or shrink around the pivot (center) point. You can set this to values like “Top Left” to pin a particular corner and resize relative to that point.
Change relative to parent object
If checked, the values above will be considered “local” values, relative to the placement of the object’s parent object. If left unchecked, the values above will be considered “screen” coordinates, and will be set regardless of any parents in the target object’s hierarchy.
Pro Tip
You can use the Dimensions size control in this action to resize certain types of objects without scaling them. For example, text boxes and nine-slice images resized with this method grow to match the requested size without scaling. This can be used to resize text boxes, for example, and cause the text inside them to wrap rather than change size.