Skip to main content

TweenMaterial

Tween subclass for material animations (color, UV offset).

TypeNameInterface Description
VariablesendColor: Color

Function: End color (AlbedoColor/EmissionColor). Used in FromTo and To modes.

VariablesendVector2: Vector2f

Function: End Vector2 (UV offset).

VariablesstartColor: Color

Function: Start color (AlbedoColor/EmissionColor). Only when motionType=FromTo.

VariablesstartVector2: Vector2f

Function: Start Vector2 (UV offset). Only when motionType=FromTo.

VariablestargetType: TweenTargetType

Functionsconstructor()

Functionspause(): void

Function: Pause the tween animation. This will temporarily stop the transition between the start and end values.

Functionsresume(): void

Function: Resume the tween animation. This will continue the transition between the start and end values.

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.TweenMaterial();

Use Case

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