Skip to content

GameScreenSequenceActionUiMoveElement

15.13

Inheritance 1 ancestor · 63 siblings

Class Documentation

Edit documentation

A sequence action that moves a UI element from StartPosition to EndPosition over the duration of the action.

The action has only an update step. On every update it computes the progress of the action, eases it with EasingType (see ISequenceAction) and interpolates between the two positions. It then moves the element by the offset from the element's pivot point to that position, so the pivot point lands on the position. If the duration is 0 or indefinite, the progress stays 0 and the element is placed at StartPosition.

Properties

0xcfe79554

Hash = "0x0"
Edit documentation

The UI element to move, by the hash of its object path.

EndPosition

Vec2 = [0, 0]
Edit documentation

The position at progress 1, in the same units as StartPosition.

Pivot

Vec2 = [0, 0]
15.15
Edit documentation

The point of the element that is placed on the position, as a fraction of the element's rectangle: (0, 0) is its minimum corner and (1, 1) the opposite corner.

StartPosition

Vec2 = [0, 0]
Edit documentation

The position at progress 0, in the same units as the size of the element's scene. The action divides the interpolated position by the scene size before it moves the element.