|
deki-tween 0.19.0
Deki package reference
|
Animation tweening with 30+ easing functions
Repository: github.com/dekiengine/deki-tween · Latest release: 0.19.0 · Needs engine 0.19.0+
Install with DekiEditor --packages-add deki-tween <project>, or from the Package Manager. The engine's own components and C++ API are in the Deki docs.
Shown in the editor as Tween.
| Component | Category | Description |
|---|---|---|
| TweenComponent | Animation | Animates the object's position, scale or rotation along an easing curve. |
Parts you can leave out of a build. A feature with a define is switched there; the rest are stripped with their components.
| Feature | Define | Default |
|---|---|---|
| Tween | DEKI_FEATURE_TWEEN | on |
Animates the object's position, scale or rotation along an easing curve.
Inspector name: Tween Component · Category: Animation · Type: DekiTween::TweenComponent
| Property | Type | Default | Constraints | Description |
|---|---|---|---|---|
| targetType | enum | "Position" | Position, Scale, Rotation | Which property of the object is animated: position, scale, rotation or colour. |
| endValue | Vector3 | [0.0, 0.0, 0.0] | The value to arrive at. Which parts are used depends on the target above. | |
| duration | float | 1 | 0.1 to 10 (slider) | How long one pass takes, in seconds. |
| delay | float | 0 | 0 to 5 (slider) | Wait this long, in seconds, before starting. |
| easeType | enum | "Linear" | Linear, SineIn, SineOut, SineInOut, QuadIn, QuadOut, QuadInOut, CubicIn, CubicOut, CubicInOut, QuartIn, QuartOut, QuartInOut, QuintIn, QuintOut, QuintInOut, ExpoIn, ExpoOut, ExpoInOut, CircIn, CircOut, CircInOut, BackIn, BackOut, BackInOut, ElasticIn, ElasticOut, ElasticInOut, BounceIn, BounceOut, BounceInOut | The shape of the motion. Linear is mechanical; ease-in-out starts and ends gently, which reads as natural for almost everything. |
| loops | int32 | 0 | -1 to 100 | How many times to run. 0 runs once, -1 repeats forever. |
| pingPong | bool | false | Run the tween backwards on alternate passes instead of jumping back to the start. | |
| autoPlay | bool | true | Start as soon as the object comes alive. Off, something has to start it. | |
| relative | bool | false | Treat the end value as an offset from where the object already is, rather than an absolute destination. |
Earlier releases: CHANGELOG.md.
Generated from the package's reflection data (engine 0.19.0). Property names are the keys used in scene files. Renames keep an alias (compatibility).