Transform Actions

v1.0

These actions affect a Transform. Combining them together can produce cool effects, with insane control using the AnimationCurve on each Action.

In this example, a group loops 10 times with a MoveAction, ScaleAction, and SpinAction applied to the targets sequentially.

Position

Move Action

Randomize Position Action

This will move the target a random position within bounds that you provide.

5 targets in sequential order being triggered twice each

Shake Position Action

Snap to Grid Action

Objects can move to grid positions over time, or instantly.

Align to Surface Action

This action will raycast for a surface and bring the target objects to that point. Position and Rotation are both optional, with offsets as well.

Move Spring Action

This is two Move Spring Actions with a WaitAction between them

Scale

Scale Action

Randomize Scale Action

This will move towards a randomly selected scale value within constraints you provide.

5 targets, repeating 4 times, without reverting to base value

Scale Spring Action

Punch Spring Action

Rotation

Spin Action

SpinAction is more unique than other Transform Actions. It will always return the object to the base rotation, while appearing to have a unique spin each time. Basically it uses fancy math to ensure the object returns to its original rotation. There is an option to offset the rotation, allowing for a change each time the Action executes.

End rotation can include an optional offset. 90 degree offset is shown in the example below.

Rotate Action

Curves make the rotation go back to negative territory

Randomize Rotation Action

Look At Action

LookAtAction allows for multiple targets to look at multiple Look At Targets, or a specific position. In this example, the Camera in the scene is the target, and each cube is a Look At Target, with random selections.

Rotate Spring Action

Rotate 2D Spring Action

This rotates Transform and RectTransform on the Z axis only.

Additional Transform Actions

Shake Transform Action

Similar to ShakePositionAction, but with additional options for rotation.

Transform Wobble

Position, Rotation, and Scale are all optional, with specific values for each. Produces a "wobble" effect. There is also an optional perlin noise value to break things up. Examples below show each transform option plus one with all enabled.

Last updated