Skip to main content

TweenTransformFollow

Tween subclass for real-time target following.

TypeNameInterface Description
VariablesfollowTarget: Transform | null

Function: Transform or ScreenTransform to follow (NOT a SceneObject). Get via sceneObject.getTransform(). Must match 2D/3D dimension.

VariablesstartNumber: number

Function: Start number value. Used for 2D Rotation only. Only used when motionType is FromTo.

VariablesstartVector2: Vector2f

Function: Start Vector2 value. Used for 2D targets (Position, Scale). Only used when motionType is FromTo.

VariablesstartVector3: Vector3f

Function: Start Vector3 value. Used for 3D targets. Only used when motionType is FromTo; in To mode the current transform value is used as the start.

VariablestargetType: TweenTargetType

Function: Current animation target type.

Functionsconstructor()

Functionspause(): void

Function: Pauses the tween animation for the follow target transform.

Functionsresume(): void

Function: Resumes the tween animation for the follow target transform.

Functionsstart(): void

Function: Start tween animation from initial state.

Functionsstop(): void

Function: Stop the tween animation and keep the current state.

Examples

constructor()

let obj = new APJS.TweenTransformFollow();

Use Case

@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use TweenTransformFollow here
}
onUpdate(deltaTime: number) {
}
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies