TweenAnimation
Base class for all tween types.
| Type | Name | Interface Description |
|---|---|---|
| Variables | delay: number | • Function: Delay in seconds before the animation starts after calling |
| Variables | duration: number | • Function: Animation duration in seconds (one cycle, excluding PingPong reverse). |
| Variables | easingFunction: TweenEasingFunction | • Function: Easing curve shape. Combine with |
| Variables | easingType: TweenEasingType | • Function: Easing direction: |
| Variables | motionType: TweenMotionType | • Function: Interpolation mode: |
| Variables | object: SceneObject | null | • Function: Target SceneObject to animate. Set to |
| Variables | playMode: TweenPlayMode | • Function: Loop behavior: |
| Variables | targetType: TweenTargetType | • Function: Property to animate. Transform/Path/Follow: |
| Functions | constructor() | |
| Functions | pause(): void | • Function: Pause the tween animation. Call |
| Functions | resume(): void | • Function: Resume the tween animation from a paused state. |
| Functions | start(): void | • Function: Start tween animation from initial state. |
| Functions | stop(): void | • Function: Stop the tween animation and keep the current state. |
Examples
constructor()
let obj = new APJS.TweenAnimation();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use TweenAnimation here
}
onUpdate(deltaTime: number) {
}
}