MCPcopy Index your code
hub / github.com/4ian/GDevelop / getProgress

Method getProgress

Extensions/TweenBehavior/TweenManager.ts:418–424  ·  view source on GitHub ↗

* Get tween progress. * @param identifier Unique id to identify the tween * @returns Progress of playing tween animation (between 0.0 and 1.0)

(identifier: string)

Source from the content-addressed store, hash-verified

416 * @returns Progress of playing tween animation (between 0.0 and 1.0)
417 */
418 getProgress(identifier: string): float {
419 const tween = this._tweens.get(identifier);
420 if (!tween) {
421 return 0;
422 }
423 return tween.getProgress();
424 }
425
426 /**
427 * Get tween value.

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
getProgressMethod · 0.65

Tested by

no test coverage detected