From 38d976e89c04b6ec26317ac1708ab6fbe2059b49 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Thu, 2 Jan 2025 14:04:26 +0000 Subject: [PATCH] `Tween.isNumberTween` is a new boolean property that tells if the Tween is a NumberTween, or not. --- src/tweens/tween/Tween.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/tweens/tween/Tween.js b/src/tweens/tween/Tween.js index 9a13965b0e..83c1da3849 100644 --- a/src/tweens/tween/Tween.js +++ b/src/tweens/tween/Tween.js @@ -154,6 +154,16 @@ var Tween = new Class({ * @since 3.60.0 */ this.totalProgress = 0; + + /** + * Is this Tween a Number Tween? Number Tweens are a special kind of tween that don't have a target. + * + * @name Phaser.Tweens.Tween#isNumberTween + * @type {boolean} + * @default false + * @since 3.88.0 + */ + this.isNumberTween = false; }, /**