TweenMaterial
Tween subclass for material animations (color, UV offset).
| Type | Name | Interface Description |
|---|---|---|
| Variables | endColor: Color | • Function: End color (AlbedoColor/EmissionColor). Used in FromTo and To modes. |
| Variables | endVector2: Vector2f | • Function: End Vector2 (UV offset). |
| Variables | startColor: Color | • Function: Start color (AlbedoColor/EmissionColor). Only when motionType=FromTo. |
| Variables | startVector2: Vector2f | • Function: Start Vector2 (UV offset). Only when motionType=FromTo. |
| Variables | targetType: TweenTargetType | |
| Functions | constructor() | |
| Functions | pause(): void | • Function: Pause the tween animation. This will temporarily stop the transition between the start and end values. |
| Functions | resume(): void | • Function: Resume the tween animation. This will continue the transition between the start and end values. |
| 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.TweenMaterial();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use TweenMaterial here
}
onUpdate(deltaTime: number) {
}
}