Skip to content

TweenTarget

const TweenTarget: object

Defined in: animation/Tween.ts:55

The 13 properties the C++ TweenSystem can drive directly.

NOTE ON THE RELATIONSHIP TO AnimTargetField: Timeline uses the wider, code-generated AnimTargetField enum (33 entries) because it composes smaller setters on top of AnimApplicator. TweenTarget is intentionally narrower — just the common property tweens that have a fast C++ fast-path. Unifying the two would require anim_createTween on the WASM boundary to accept AnimTargetField values directly and an extended TWEEN_TO_ANIM_FIELD map in TweenSystem.cpp. That’s a larger cross-layer change tracked separately; for now TweenTarget is the stable subset.

If you need to tween a field not in this list (e.g. UINode.insetLeft.value), use tween.value(...) with a callback that writes the field yourself, or drive it via Timeline.

readonly CameraOrthoSize: 12 = 12

readonly ColorA: 9 = 9

readonly ColorB: 8 = 8

readonly ColorG: 7 = 7

readonly ColorR: 6 = 6

readonly PositionX: 0 = 0

readonly PositionY: 1 = 1

readonly PositionZ: 2 = 2

readonly RotationZ: 5 = 5

readonly ScaleX: 3 = 3

readonly ScaleY: 4 = 4

readonly SizeX: 10 = 10

readonly SizeY: 11 = 11