Skip to content

API Type TweenField

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Type Alias: TweenField<T>

type TweenField<T> = 
  | { [K in keyof T]: T[K] extends number | boolean | Vector2 | Vector3 | Quaternion | Color ? K : never }[keyof T] & string
  | `${string}.${string}`;

Defined in: src/plugins/animation/runtime/types.ts:251

The fields of T a tween can drive (animatable fields of a component; position, rotation and scale fields of a Transform), or a dotted path: a sub-path of a plain-object field ("drive.targetRotation") or a MeshRenderer's material property ("material.color", a per-renderer override).

Type Parameters

T

T

Clone this wiki locally