MCPcopy
hub / github.com/4ian/GDevelop / removeTween

Method removeTween

Extensions/TweenBehavior/TweenManager.ts:387–396  ·  view source on GitHub ↗

* Remove a tween. * @param identifier Unique id to identify the tween

(identifier: string)

Source from the content-addressed store, hash-verified

385 * @param identifier Unique id to identify the tween
386 */
387 removeTween(identifier: string) {
388 const tween = this._tweens.get(identifier);
389 if (!tween) {
390 return;
391 }
392 if (tween.isPlaying()) {
393 this._removeActiveTween(tween);
394 }
395 this._tweens.delete(identifier);
396 }
397
398 _addActiveTween(
399 tween: TweenInstance<float> | TweenInstance<Array<float>>

Callers 4

addSimpleTweenMethod · 0.95
addMultiTweenMethod · 0.95
removeSceneTweenFunction · 0.45

Calls 4

_removeActiveTweenMethod · 0.95
getMethod · 0.65
isPlayingMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected