TweenTarget
此内容尚不支持你的语言。
constTweenTarget: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.
Type Declaration
Section titled “Type Declaration”CameraOrthoSize
Section titled “CameraOrthoSize”
readonlyCameraOrthoSize:12=12
ColorA
Section titled “ColorA”
readonlyColorA:9=9
ColorB
Section titled “ColorB”
readonlyColorB:8=8
ColorG
Section titled “ColorG”
readonlyColorG:7=7
ColorR
Section titled “ColorR”
readonlyColorR:6=6
PositionX
Section titled “PositionX”
readonlyPositionX:0=0
PositionY
Section titled “PositionY”
readonlyPositionY:1=1
PositionZ
Section titled “PositionZ”
readonlyPositionZ:2=2
RotationZ
Section titled “RotationZ”
readonlyRotationZ:5=5
ScaleX
Section titled “ScaleX”
readonlyScaleX:3=3
ScaleY
Section titled “ScaleY”
readonlyScaleY:4=4
readonlySizeX:10=10
readonlySizeY:11=11