File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -898,13 +898,32 @@ var Tween = new Class({
898898 return this ;
899899 } ,
900900
901+ /**
902+ * Immediately removes this Tween from the TweenManager and all of its internal arrays,
903+ * no matter what stage it as it. Then sets the tween state to `REMOVED`.
904+ *
905+ * You should dispose of your reference to this tween after calling this method, to
906+ * free it from memory.
907+ *
908+ * @method Phaser.Tweens.Tween#remove
909+ * @since 3.17.0
910+ *
911+ * @return {this } This Tween instance.
912+ */
913+ remove : function ( )
914+ {
915+ this . parent . remove ( this ) ;
916+
917+ return this ;
918+ } ,
919+
901920 /**
902921 * Stops the Tween immediately, whatever stage of progress it is at and flags it for removal by the TweenManager.
903922 *
904923 * @method Phaser.Tweens.Tween#stop
905924 * @since 3.0.0
906925 *
907- * @param {number } [resetTo] - A value between 0 and 1.
926+ * @param {number } [resetTo] - If you want to seek the tween, provide an value between 0 and 1.
908927 *
909928 * @return {this } This Tween instance.
910929 */
You can’t perform that action at this time.
0 commit comments