RectTransform Actions

v1.0

Recording Data

Use the RecordRectTranscformAction to store data about one or more RectTransform objects for use by other scripts and Actions.

Record RectTransform Action

Records RectTransform properties (position, size, pivot, margins, scale compensation data) to the Blackboard as JSON for later retrieval or comparison. This Action captures the current state of a UI element, allowing you to store it before performing transformations, compare states across frames, or restore properties later by reading the stored JSON data from the Blackboard.

Particularly useful for implementing state management, or creating dynamic UI animations that need to reference original values.

RectTransform Actions

RectTransform Position Action

Animates the anchored position of UI elements over time with support for relative/absolute positioning and optional return to base value.

RectTransform Rotation Action

Animates the local rotation of UI elements over time with support for relative/absolute rotation and optional return to base value.

Rotate 2D Spring Action

This rotates Transform and RectTransform on the Z axis only.

RectTransform Scale Action

Animates the local scale of UI elements over time with support for relative/absolute scaling and optional return to base value.

RectTransform Size Action

Animates the sizeDelta (width/height) of UI elements over time with support for relative/absolute sizing and optional return to base value.

RectTransform Shake Action

Applies randomized shake effects to UI elements with configurable intensity, frequency, and optional rotation shake.

A small shake brings a players attention to the UI
Big shakes are great when the player gets hit!

RectTransform Margins Action

Animates the margins (offsetMin/offsetMax) of UI elements to control left, right, top, and bottom edge distances from anchors with optional layout disabling.

RectTransform Pivot Action

Animates the pivot point of UI elements over time, affecting how the element scales and rotates around a different anchor point.

RectTransformRotationAction rotates around the pivot point

RectTransform Size With Pivot Action

Animates UI element size while automatically compensating anchored position based on pivot changes, maintaining visual position during scaling.

In this example, pivot is at 0,0 which is the bottom left.

Compensate Position bool is OFF
Compensate Position bool is ON

Last updated